mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] trivial __user annotations (evdev)
@ 2005-09-09 19:29 viro
  0 siblings, 0 replies; only message in thread
From: viro @ 2005-09-09 19:29 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel, vojtech

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
----
diff -urN RC13-git8-base/drivers/input/evdev.c current/drivers/input/evdev.c
--- RC13-git8-base/drivers/input/evdev.c	2005-09-08 10:17:39.000000000 -0400
+++ current/drivers/input/evdev.c	2005-09-08 23:53:33.000000000 -0400
@@ -509,7 +509,7 @@
 	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; \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-09-09 19:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-09 19:29 [PATCH] trivial __user annotations (evdev) viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®