Skip to content

Commit 88b4ad2

Browse files
committed
Merge tag 'fixes-for-linus-v4.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull uaccess fixes from Guenter Roeck: "Two patches fixing problems introduced with copy_from_user changes" * tag 'fixes-for-linus-v4.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: openrisc: fix the fix of copy_from_user() avr32: fix 'undefined reference to `___copy_from_user'
2 parents 3286be9 + 8e4b720 commit 88b4ad2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arch/avr32/lib/copy_user.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
*/
2424
.text
2525
.align 1
26-
.global copy_from_user
27-
.type copy_from_user, @function
26+
.global ___copy_from_user
27+
.type ___copy_from_user, @function
2828
___copy_from_user:
2929
branch_if_kernel r8, __copy_user
3030
ret_if_privileged r8, r11, r10, r10

arch/openrisc/include/asm/uaccess.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ copy_from_user(void *to, const void *from, unsigned long n)
276276
unsigned long res = n;
277277

278278
if (likely(access_ok(VERIFY_READ, from, n)))
279-
n = __copy_tofrom_user(to, from, n);
279+
res = __copy_tofrom_user(to, from, n);
280280
if (unlikely(res))
281281
memset(to + (n - res), 0, res);
282282
return res;

0 commit comments

Comments
 (0)