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

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
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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 (len)
		*err_ptr = -EFAULT;