Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 917400ce authored by Al Viro's avatar Al Viro
Browse files

sparc32: fix copy_from_user()



Cc: stable@vger.kernel.org
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 6e050503
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -269,9 +269,11 @@ static inline unsigned long copy_from_user(void *to, const void __user *from, un
		if (!__builtin_constant_p(n))
		if (!__builtin_constant_p(n))
			check_object_size(to, n, false);
			check_object_size(to, n, false);
		return __copy_user((__force void __user *) to, from, n);
		return __copy_user((__force void __user *) to, from, n);
	} else
	} else {
		memset(to, 0, n);
		return n;
		return n;
	}
	}
}


static inline unsigned long __copy_from_user(void *to, const void __user *from, unsigned long n)
static inline unsigned long __copy_from_user(void *to, const void __user *from, unsigned long n)
{
{