projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5df0287
)
[PATCH] Generic: Move __user cast into probe_kernel_address
author
Andi Kleen
<ak@suse.de>
Thu, 7 Dec 2006 01:14:05 +0000
(
02:14
+0100)
committer
Andi Kleen
<andi@basil.nowhere.org>
Thu, 7 Dec 2006 01:14:05 +0000
(
02:14
+0100)
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>
include/linux/uaccess.h
patch
|
blob
|
history
diff --git
a/include/linux/uaccess.h
b/include/linux/uaccess.h
index
a48d7f1
..
65a68da
100644
(file)
--- 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; \
})