diff options
-rw-r--r-- | arch/microblaze/include/asm/uaccess.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/microblaze/include/asm/uaccess.h b/arch/microblaze/include/asm/uaccess.h index ef25f7538d4a..927540d3cb7d 100644 --- a/arch/microblaze/include/asm/uaccess.h +++ b/arch/microblaze/include/asm/uaccess.h | |||
@@ -298,11 +298,10 @@ extern long __user_bad(void); | |||
298 | 298 | ||
299 | #define __put_user_check(x, ptr, size) \ | 299 | #define __put_user_check(x, ptr, size) \ |
300 | ({ \ | 300 | ({ \ |
301 | typeof(*(ptr)) __pu_val; \ | 301 | typeof(*(ptr)) volatile __pu_val = x; \ |
302 | typeof(*(ptr)) __user *__pu_addr = (ptr); \ | 302 | typeof(*(ptr)) __user *__pu_addr = (ptr); \ |
303 | int __pu_err = 0; \ | 303 | int __pu_err = 0; \ |
304 | \ | 304 | \ |
305 | __pu_val = (x); \ | ||
306 | if (access_ok(VERIFY_WRITE, __pu_addr, size)) { \ | 305 | if (access_ok(VERIFY_WRITE, __pu_addr, size)) { \ |
307 | switch (size) { \ | 306 | switch (size) { \ |
308 | case 1: \ | 307 | case 1: \ |