summaryrefslogtreecommitdiffstats
path: root/arch/avr32/lib
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-09-09 19:28:23 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-09-13 17:50:18 -0400
commit8630c32275bac2de6ffb8aea9d9b11663e7ad28e (patch)
tree93800a44bb196d8eb11b2ae0d7d2a810dc0883dd /arch/avr32/lib
parente98b9e37ae04562d52c96f46b3cf4c2e80222dc1 (diff)
downloadlinux-8630c32275bac2de6ffb8aea9d9b11663e7ad28e.tar.gz
linux-8630c32275bac2de6ffb8aea9d9b11663e7ad28e.tar.bz2
linux-8630c32275bac2de6ffb8aea9d9b11663e7ad28e.zip
avr32: fix copy_from_user()
really ugly, but apparently avr32 compilers turns access_ok() into something so bad that they want it in assembler. Left that way, zeroing added in inline wrapper. Cc: stable@vger.kernel.org Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/avr32/lib')
-rw-r--r--arch/avr32/lib/copy_user.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/avr32/lib/copy_user.S b/arch/avr32/lib/copy_user.S
index ea59c04b07de..96a6de9d578f 100644
--- a/arch/avr32/lib/copy_user.S
+++ b/arch/avr32/lib/copy_user.S
@@ -25,11 +25,11 @@
.align 1
.global copy_from_user
.type copy_from_user, @function
-copy_from_user:
+___copy_from_user:
branch_if_kernel r8, __copy_user
ret_if_privileged r8, r11, r10, r10
rjmp __copy_user
- .size copy_from_user, . - copy_from_user
+ .size ___copy_from_user, . - ___copy_from_user
.global copy_to_user
.type copy_to_user, @function