diff options
author | Arjan van de Ven <[email protected]> | 2009-09-26 20:51:50 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-10-02 19:51:56 +0200 |
commit | 11879ba5d9ab8174af9b9cefbb2396a54dfbf8c1 (patch) | |
tree | 6f33aa93436dbf959e6c9e10f8b113801eca59cb /lib/cpu-notifier-error-inject.c | |
parent | 0d18b2e34bd1ad8f5bd3f3a17b5e7df132e511a9 (diff) |
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 <[email protected]>
Cc: Yinghai Lu <[email protected]>
Cc: Linus Torvalds <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions