patch-2.4.10 linux/drivers/usb/serial/keyspan.c
Next file: linux/drivers/usb/serial/keyspan_pda.c
Previous file: linux/drivers/usb/serial/io_usbvend.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Fri Sep 14 14:04:07 2001
- Orig file:
v2.4.9/linux/drivers/usb/serial/keyspan.c
- Orig date:
Tue Jul 3 17:08:21 2001
diff -u --recursive --new-file v2.4.9/linux/drivers/usb/serial/keyspan.c linux/drivers/usb/serial/keyspan.c
@@ -349,7 +349,8 @@
((char *)this_urb->transfer_buffer)[0] = 0;
if (from_user) {
- copy_from_user(this_urb->transfer_buffer + 1, buf, todo);
+ if (copy_from_user(this_urb->transfer_buffer + 1, buf, todo))
+ return -EFAULT;
} else {
memcpy (this_urb->transfer_buffer + 1, buf, todo);
}
@@ -1718,6 +1719,7 @@
MODULE_AUTHOR( DRIVER_AUTHOR );
MODULE_DESCRIPTION( DRIVER_DESC );
+MODULE_LICENSE("GPL");
MODULE_PARM(debug, "i");
MODULE_PARM_DESC(debug, "Debug enabled or not");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)