From: Nikanth Karthikesan Date: Wed, 23 Sep 2009 22:57:09 +0000 (-0700) Subject: /dev/zero: avoid repeated access_ok() checks X-Git-Tag: v2.6.32-rc1~91 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb521c5de070b86a1e049e2dbf62328f717ff1e8;p=pandora-kernel.git /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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed