提交 2fff0a48 编写于 作者: A Andi Kleen 提交者: Andi Kleen

[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: NAndi Kleen <ak@suse.de>
上级 5df0287e
......@@ -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; \
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册