summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-08-20 22:32:02 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2016-09-13 23:49:42 +0200
commit43403eabf558d2800b429cd886e996fd555aa542 (patch)
treec49c666ca3a656709d7decc95163cb0c1b01df38 /arch
parentmips: copy_from_user() must zero the destination on access_ok() failure (diff)
downloadlinux-43403eabf558d2800b429cd886e996fd555aa542.tar.xz
linux-43403eabf558d2800b429cd886e996fd555aa542.zip
mn10300: failing __get_user() and get_user() should zero
Cc: stable@vger.kernel.org Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch')
-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 20f7bf6de384..d012e877a95a 100644
--- a/arch/mn10300/include/asm/uaccess.h
+++ b/arch/mn10300/include/asm/uaccess.h
@@ -166,6 +166,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" \