Skip to content

Commit

Permalink
[PATCH] Generic: Move __user cast into probe_kernel_address
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and Andi Kleen committed Dec 7, 2006
1 parent 5df0287 commit 2fff0a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
})
Expand Down

0 comments on commit 2fff0a4

Please sign in to comment.