From: Arjan van de Ven Date: Sat, 26 Sep 2009 18:51:50 +0000 (+0200) Subject: x86: Simplify bound checks in the MTRR code X-Git-Tag: v2.6.32-rc4~26^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11879ba5d9ab8174af9b9cefbb2396a54dfbf8c1;p=pandora-kernel.git x86: Simplify bound checks in the MTRR code The current bound checks for copy_from_user in the MTRR driver are not as obvious as they could be, and gcc agrees with that. This patch simplifies the boundary checks to the point that gcc can now prove to itself that the copy_from_user() is never going past its bounds. Signed-off-by: Arjan van de Ven Cc: Yinghai Lu Cc: Linus Torvalds LKML-Reference: <20090926205150.30797709@infradead.org> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed