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
- Lines: 10
- Date:
Sun Mar 25 18:14:20 2001
- Orig file:
v2.4.2/linux/drivers/input/mousedev.c
- Orig date:
Wed Feb 21 18:20:22 2001
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)