alistair23-linux/arch/x86/kernel/cpu/mtrr
Arjan van de Ven 11879ba5d9 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 <arjan@linux.intel.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
LKML-Reference: <20090926205150.30797709@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-10-02 19:51:56 +02:00
..
amd.c x86: Clean up mtrr/amd.c: 2009-07-04 11:10:45 +02:00
centaur.c x86: Clean up mtrr/centaur.c 2009-07-04 11:10:45 +02:00
cleanup.c x86: Further clean up of mtrr/generic.c 2009-07-05 09:46:10 +02:00
cyrix.c x86: Clean up mtrr/cyrix.c 2009-07-04 11:10:47 +02:00
generic.c x86: Clean up mtrr/generic.c 2009-07-04 11:10:47 +02:00
if.c x86: Simplify bound checks in the MTRR code 2009-10-02 19:51:56 +02:00
main.c x86, mtrr: make mtrr_aps_delayed_init static bool 2009-08-21 17:00:02 -07:00
Makefile x86: separate mtrr cleanup/mtrr_e820 trim to separate file 2009-03-13 02:52:19 +01:00
mtrr.h x86: Clean up mtrr/mtrr.h 2009-07-04 11:19:52 +02:00
state.c x86: Clean up mtrr/state.c 2009-07-04 11:19:53 +02:00