patch-2.4.10 linux/drivers/usb/serial/cyberjack.c
Next file: linux/drivers/usb/serial/digi_acceleport.c
Previous file: linux/drivers/usb/serial/belkin_sa.c
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/cyberjack.c
- Orig date:
Tue Jul 3 17:08:21 2001
diff -u --recursive --new-file v2.4.9/linux/drivers/usb/serial/cyberjack.c linux/drivers/usb/serial/cyberjack.c
@@ -241,7 +241,8 @@
/* Copy data */
if (from_user) {
- copy_from_user(priv->wrbuf+priv->wrfilled, buf, count);
+ if (copy_from_user(priv->wrbuf+priv->wrfilled, buf, count))
+ return -EFAULT;
} else {
memcpy (priv->wrbuf+priv->wrfilled, buf, count);
}
@@ -514,6 +515,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)