patch-2.2.19 linux/drivers/usb/devices.c
Next file: linux/drivers/usb/devio.c
Previous file: linux/drivers/usb/dc2xx.c
Back to the patch index
Back to the overall index
-  Lines: 12
 -  Date:
Sun Mar 25 11:37:37 2001
 -  Orig file: 
v2.2.18/drivers/usb/devices.c
 -  Orig date: 
Sun Mar 25 11:28:31 2001
 
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/drivers/usb/devices.c linux/drivers/usb/devices.c
@@ -496,8 +496,10 @@
 	lock_kernel();
 	if (!st) {
 		st = kmalloc(sizeof(struct usb_device_status), GFP_KERNEL);
-		if (!st)
+		if (!st) {
+			unlock_kernel();
 			return POLLIN;
+		}
 		/*
 		 * need to prevent the module from being unloaded, since
 		 * proc_unregister does not call the release method and
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)