mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-28 05:24:47 +08:00
[PATCH] Generic: Move __user cast into probe_kernel_address
Caller of probe_kernel_address shouldn't need to know that pka is internally implemented with __get_user. So move the __user cast into pka. Signed-off-by: Andi Kleen <ak@suse.de>
This commit is contained in:
parent
5df0287ecc
commit
2fff0a4841
@ -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; \
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user