summaryrefslogtreecommitdiff
path: root/include/linux/uaccess.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/uaccess.h')
-rw-r--r--include/linux/uaccess.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/uaccess.h b/include/linux/uaccess.h
index a48d7f11c7be..65a68da8bd5d 100644
--- a/include/linux/uaccess.h
+++ b/include/linux/uaccess.h
@@ -36,7 +36,7 @@ static inline unsigned long __copy_from_user_nocache(void *to,
long ret; \
\
inc_preempt_count(); \
- ret = __get_user(retval, addr); \
+ ret = __get_user(retval, (__force typeof(*addr) __user *)addr);\
dec_preempt_count(); \
ret; \
})