git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b8c78f
)
/dev/zero: avoid repeated access_ok() checks
author
Nikanth Karthikesan
<knikanth@suse.de>
Wed, 23 Sep 2009 22:57:09 +0000
(15:57 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 24 Sep 2009 14:21:03 +0000
(07:21 -0700)
In read_zero, we check for access_ok() once for the count bytes. It is
unnecessarily checked again in clear_user. Use __clear_user, which does
not check for access_ok().
Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
No differences found