summaryrefslogtreecommitdiffstats
path: root/lib/plist.c
diff options
context:
space:
mode:
authorNikanth Karthikesan2009-09-24 00:57:09 +0200
committerLinus Torvalds2009-09-24 16:21:03 +0200
commitbb521c5de070b86a1e049e2dbf62328f717ff1e8 (patch)
treee2a4416f35e84873f75c0e86ebae5552cf4ae2b2 /lib/plist.c
parentflat: use IS_ERR_VALUE() helper macro (diff)
downloadkernel-qcow2-linux-bb521c5de070b86a1e049e2dbf62328f717ff1e8.tar.gz
kernel-qcow2-linux-bb521c5de070b86a1e049e2dbf62328f717ff1e8.tar.xz
kernel-qcow2-linux-bb521c5de070b86a1e049e2dbf62328f717ff1e8.zip
/dev/zero: avoid repeated access_ok() checks
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>
Diffstat (limited to 'lib/plist.c')
0 files changed, 0 insertions, 0 deletions