diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-08-21 23:33:47 -0400 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2016-11-20 01:01:40 +0000 |
commit | 264a03512d38ad22ba58ba06817f46506246309e (patch) | |
tree | f0c3264763b53d4cba415f87687f0c988943fd98 /arch | |
parent | b33c94f21178581f0e2f3d8769bc51e33fc04936 (diff) | |
download | linux-stable-264a03512d38ad22ba58ba06817f46506246309e.tar.gz linux-stable-264a03512d38ad22ba58ba06817f46506246309e.tar.bz2 linux-stable-264a03512d38ad22ba58ba06817f46506246309e.zip |
sh64: failing __get_user() should zero
commit c6852389228df9fb3067f94f3b651de2a7921b36 upstream.
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.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'arch')
-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 56fd20b8cdcc..1a48a4ab8c69 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, \ |