aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m32r
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-09-09 19:20:13 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-09-13 17:50:16 -0400
commitc90a3bc5061d57e7931a9b7ad14784e1a0ed497d (patch)
tree0fc4e9dddc83583fb5a9861a6752d68056e30eda /arch/m32r
parentblackfin: fix copy_from_user() (diff)
downloadlinux-dev-c90a3bc5061d57e7931a9b7ad14784e1a0ed497d.tar.xz
linux-dev-c90a3bc5061d57e7931a9b7ad14784e1a0ed497d.zip
m32r: fix __get_user()
Cc: stable@vger.kernel.org Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/m32r')
-rw-r--r--arch/m32r/include/asm/uaccess.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m32r/include/asm/uaccess.h b/arch/m32r/include/asm/uaccess.h
index cac7014daef3..6f8982157a75 100644
--- a/arch/m32r/include/asm/uaccess.h
+++ b/arch/m32r/include/asm/uaccess.h
@@ -219,7 +219,7 @@ extern int fixup_exception(struct pt_regs *regs);
#define __get_user_nocheck(x, ptr, size) \
({ \
long __gu_err = 0; \
- unsigned long __gu_val; \
+ unsigned long __gu_val = 0; \
might_fault(); \
__get_user_size(__gu_val, (ptr), (size), __gu_err); \
(x) = (__force __typeof__(*(ptr)))__gu_val; \