projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b615e3c
)
sh64: failing __get_user() should zero
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 22 Aug 2016 03:33:47 +0000
(23:33 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 13 Sep 2016 21:50:14 +0000
(17:50 -0400)
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>
arch/sh/include/asm/uaccess_64.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/sh/include/asm/uaccess_64.h
b/arch/sh/include/asm/uaccess_64.h
index c01376c76b868727b55bd117551cc1b96b93d8f1..ca5073dd459674d1ad835406fc46baa1957d01ac 100644
(file)
--- 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, \