patch-2.4.7 linux/drivers/char/moxa.c
Next file: linux/drivers/char/rio/linux_compat.h
Previous file: linux/drivers/char/mem.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed Jul 4 14:41:33 2001
- Orig file:
v2.4.6/linux/drivers/char/moxa.c
- Orig date:
Tue May 22 10:23:16 2001
diff -u --recursive --new-file v2.4.6/linux/drivers/char/moxa.c linux/drivers/char/moxa.c
@@ -2916,6 +2916,8 @@
unsigned long baseAddr;
int i;
+ if(len > sizeof(moxaBuff))
+ return -EINVAL;
if(copy_from_user(moxaBuff, tmp, len))
return -EFAULT;
baseAddr = moxaBaseAddr[cardno];
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)