summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-08-20 23:32:02 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-24 11:07:43 +0300
commit6eb02b036f20232fb4184af39996a67eb9c2c67e (patch)
treefef4f9452208ccc8b35acd0de1f24b8f997cc8e6
parent9d25c78ec01c402dc56272693c44ef9d72ecdd2e (diff)
downloadlinux-6eb02b036f20232fb4184af39996a67eb9c2c67e.tar.xz
mn10300: failing __get_user() and get_user() should zero
commit 43403eabf558d2800b429cd886e996fd555aa542 upstream. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--arch/mn10300/include/asm/uaccess.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mn10300/include/asm/uaccess.h b/arch/mn10300/include/asm/uaccess.h
index 537278746a15..4af43d9ba495 100644
--- a/arch/mn10300/include/asm/uaccess.h
+++ b/arch/mn10300/include/asm/uaccess.h
@@ -181,6 +181,7 @@ struct __large_struct { unsigned long buf[100]; };
"2:\n" \
" .section .fixup,\"ax\"\n" \
"3:\n\t" \
+ " mov 0,%1\n" \
" mov %3,%0\n" \
" jmp 2b\n" \
" .previous\n" \