diff options
author | Nikanth Karthikesan <[email protected]> | 2009-09-23 15:57:09 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-09-24 07:21:03 -0700 |
commit | bb521c5de070b86a1e049e2dbf62328f717ff1e8 (patch) | |
tree | e2a4416f35e84873f75c0e86ebae5552cf4ae2b2 /scripts/basic/docproc.c | |
parent | 0b8c78f2bfa6ebed0f47794b5995a0d4b3fe456d (diff) |
/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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions