microblaze: fix __get_user()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 9 Sep 2016 23:23:33 +0000 (19:23 -0400)
committerSasha Levin <alexander.levin@verizon.com>
Mon, 3 Oct 2016 01:15:08 +0000 (21:15 -0400)
[ Upstream commit e98b9e37ae04562d52c96f46b3cf4c2e80222dc1 ]

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
arch/microblaze/include/asm/uaccess.h

index 55873af600ff1f7c56dc5e4d673b9c4011cdeea2..0c0a5cfbf79a60249a79e439a82c30fa67b71832 100644 (file)
@@ -226,7 +226,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))) {                                       \