diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-08-20 22:32:02 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-09-13 23:49:42 +0200 |
commit | 43403eabf558d2800b429cd886e996fd555aa542 (patch) | |
tree | c49c666ca3a656709d7decc95163cb0c1b01df38 /arch/mn10300/include | |
parent | mips: copy_from_user() must zero the destination on access_ok() failure (diff) | |
download | linux-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/mn10300/include')
-rw-r--r-- | arch/mn10300/include/asm/uaccess.h | 1 |
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" \ |