]> git.baikalelectronics.ru Git - kernel.git/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)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 18 Sep 2016 14:26:42 +0000 (07:26 -0700)
commit1bf4a69f04b0794f877b4f4a803394fbdc034049
tree2af6cc02dc448a37ffae36f971a5d9a3e6e7ebd3
parente96e5d75dc27f1279f2dd01c932c64ba8f265e5f
openrisc: fix the fix of copy_from_user()

Since commit 16efd1910699 ("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: 16efd1910699 ("openrisc: fix copy_from_user()")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
arch/openrisc/include/asm/uaccess.h