summaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-09-10 01:23:33 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2016-09-13 23:50:17 +0200
commite98b9e37ae04562d52c96f46b3cf4c2e80222dc1 (patch)
tree2cb0c71632542e9381d908e183f27184a822e4c2 /arch/microblaze
parentmicroblaze: fix copy_from_user() (diff)
downloadlinux-e98b9e37ae04562d52c96f46b3cf4c2e80222dc1.tar.xz
linux-e98b9e37ae04562d52c96f46b3cf4c2e80222dc1.zip
microblaze: fix __get_user()
Cc: stable@vger.kernel.org Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/include/asm/uaccess.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/uaccess.h b/arch/microblaze/include/asm/uaccess.h
index 3a486d3b6f52..826676778094 100644
--- a/arch/microblaze/include/asm/uaccess.h
+++ b/arch/microblaze/include/asm/uaccess.h
@@ -227,7 +227,7 @@ extern long __user_bad(void);
#define __get_user(x, ptr) \
({ \
- unsigned long __gu_val; \
+ unsigned long __gu_val = 0; \
/*unsigned long __gu_ptr = (unsigned long)(ptr);*/ \
long __gu_err; \
switch (sizeof(*(ptr))) { \