]> git.hungrycats.org Git - linux/commit
openrisc: fix the fix of copy_from_user()
authorGuenter Roeck <linux@roeck-us.net>
Sat, 17 Sep 2016 19:57:24 +0000 (12:57 -0700)
committerJiri Slaby <jslaby@suse.cz>
Thu, 29 Sep 2016 09:14:40 +0000 (11:14 +0200)
commitf0cbef458ac3d7575397295568507a9b45d5a858
tree4c8dfe32be8bd2a9961a5b67b84a87e3405e0fa3
parentfa1709570d8087a4c0e330be876e242ba6b8a7e3
openrisc: fix the fix of copy_from_user()

commit 8e4b72054f554967827e18be1de0e8122e6efc04 upstream.

Since commit acb2505d0119 ("openrisc: fix copy_from_user()"),
copy_from_user() returns the number of bytes requested, not the
number of bytes not copied.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Fixes: acb2505d0119 ("openrisc: fix copy_from_user()")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/openrisc/include/asm/uaccess.h