patch-2.3.26 linux/drivers/usb/usb_scsi.c

Next file: linux/drivers/usb/uss720.c
Previous file: linux/drivers/usb/usb.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.25/linux/drivers/usb/usb_scsi.c linux/drivers/usb/usb_scsi.c
@@ -1365,7 +1365,9 @@
 	usb_zip_init();
 #endif
 
-	usb_register(&scsi_driver);
+	if (usb_register(&scsi_driver) < 0)
+		return -1;
+
 	printk(KERN_INFO "USB SCSI 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)