projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21b2922
)
[PATCH] trivial __user annotations (evdev)
author
viro@ZenIV.linux.org.uk
<viro@ZenIV.linux.org.uk>
Fri, 9 Sep 2005 19:29:12 +0000
(20:29 +0100)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Fri, 9 Sep 2005 21:05:54 +0000
(14:05 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/input/evdev.c
patch
|
blob
|
history
diff --git
a/drivers/input/evdev.c
b/drivers/input/evdev.c
index 19c14c4beb44e2537b2207435e5a625efb9a5f2f..60b696e9336b8442df9e24e571e832862179e257 100644
(file)
--- a/
drivers/input/evdev.c
+++ b/
drivers/input/evdev.c
@@
-509,7
+509,7
@@
do { \
int len = NBITS_COMPAT((max)) * sizeof(compat_long_t); \
if (len > _IOC_SIZE(cmd)) len = _IOC_SIZE(cmd); \
for (i = 0; i < len / sizeof(compat_long_t); i++) \
- if (copy_to_user((compat_long_t*) p + i, \
+ if (copy_to_user((compat_long_t
__user
*) p + i, \
(compat_long_t*) (bit) + i + 1 - ((i % 2) << 1), \
sizeof(compat_long_t))) \
return -EFAULT; \