Commit 001c1a65 authored by Al Viro's avatar Al Viro

default csum_and_copy_to_user(): don't bother with access_ok()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 5904122c
......@@ -38,10 +38,8 @@ static __inline__ __wsum csum_and_copy_to_user
{
sum = csum_partial(src, len, sum);
if (access_ok(dst, len)) {
if (copy_to_user(dst, src, len) == 0)
return sum;
}
if (copy_to_user(dst, src, len) == 0)
return sum;
if (len)
*err_ptr = -EFAULT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment