diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-08-21 23:33:47 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-09-13 17:50:14 -0400 |
commit | c6852389228df9fb3067f94f3b651de2a7921b36 (patch) | |
tree | 2a3d96bc3ef420a05304aaf301ea204a5314615f /arch/sh/include | |
parent | b615e3c74621e06cd97f86373ca90d43d6d998aa (diff) | |
download | linux-c6852389228df9fb3067f94f3b651de2a7921b36.tar.bz2 |
sh64: failing __get_user() should zero
It could be done in exception-handling bits in __get_user_b() et.al.,
but the surgery involved would take more knowledge of sh64 details
than I have or _want_ to have.
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/sh/include')
-rw-r--r-- | arch/sh/include/asm/uaccess_64.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/include/asm/uaccess_64.h b/arch/sh/include/asm/uaccess_64.h index c01376c76b86..ca5073dd4596 100644 --- a/arch/sh/include/asm/uaccess_64.h +++ b/arch/sh/include/asm/uaccess_64.h @@ -24,6 +24,7 @@ #define __get_user_size(x,ptr,size,retval) \ do { \ retval = 0; \ + x = 0; \ switch (size) { \ case 1: \ retval = __get_user_asm_b((void *)&x, \ |