patch-2.3.26 linux/drivers/usb/usb-serial.c
Next file: linux/drivers/usb/usb.c
Previous file: linux/drivers/usb/usb-core.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Fri Nov 5 10:42:15 1999
- Orig file:
v2.3.25/linux/drivers/usb/usb-serial.c
- Orig date:
Mon Nov 1 13:56:26 1999
diff -u --recursive --new-file v2.3.25/linux/drivers/usb/usb-serial.c linux/drivers/usb/usb-serial.c
@@ -665,7 +665,11 @@
}
/* register the USB driver */
- usb_register(&usb_serial_driver);
+ if (usb_register(&usb_serial_driver) < 0) {
+ tty_unregister_driver(&serial_tty_driver);
+ return -1;
+ }
+
printk(KERN_INFO "USB Serial support registered.\n");
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)