Skip to contentSkip to conversation

trivial __user annotations (evdev)

PATCH New [email protected] 1 participant 1 message Sep 9, 2005 Input drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trivial __user annotations (evdev)

----

drivers/input/evdev.c +1 -1
diff -urN RC13-git8-base/drivers/input/evdev.c current/drivers/input/evdev.c
@@ -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; \