Commit d6dd6bf6 authored by Al Viro's avatar Al Viro Committed by Sasha Levin

microblaze: fix __get_user()

[ Upstream commit e98b9e37 ]

Cc: stable@vger.kernel.org
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
parent 9159bc0a
...@@ -226,7 +226,7 @@ extern long __user_bad(void); ...@@ -226,7 +226,7 @@ extern long __user_bad(void);
#define __get_user(x, ptr) \ #define __get_user(x, ptr) \
({ \ ({ \
unsigned long __gu_val; \ unsigned long __gu_val = 0; \
/*unsigned long __gu_ptr = (unsigned long)(ptr);*/ \ /*unsigned long __gu_ptr = (unsigned long)(ptr);*/ \
long __gu_err; \ long __gu_err; \
switch (sizeof(*(ptr))) { \ switch (sizeof(*(ptr))) { \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment