patch-2.4.3 linux/drivers/input/mousedev.c

Next file: linux/drivers/isdn/Config.in
Previous file: linux/drivers/input/keybdev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.2/linux/drivers/input/mousedev.c linux/drivers/input/mousedev.c
@@ -278,7 +278,8 @@
 
 	for (i = 0; i < count; i++) {
 
-		c = buffer[i];
+		if (get_user(c, &buffer[i]))
+			return -EFAULT;
 
 		if (c == mousedev_genius_seq[list->genseq]) {
 			if (++list->genseq == MOUSEDEV_GENIUS_LEN) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)