Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01703597 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

[PATCH] trivial __user annotations (evdev)

parent 21b29229
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -509,7 +509,7 @@ do { \
	int len = NBITS_COMPAT((max)) * sizeof(compat_long_t); \
	int len = NBITS_COMPAT((max)) * sizeof(compat_long_t); \
	if (len > _IOC_SIZE(cmd)) len = _IOC_SIZE(cmd); \
	if (len > _IOC_SIZE(cmd)) len = _IOC_SIZE(cmd); \
	for (i = 0; i < len / sizeof(compat_long_t); i++) \
	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), \
				 (compat_long_t*) (bit) + i + 1 - ((i % 2) << 1), \
				 sizeof(compat_long_t))) \
				 sizeof(compat_long_t))) \
			return -EFAULT; \
			return -EFAULT; \