patch-2.4.0-test9 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

diff -u --recursive --new-file v2.4.0-test8/linux/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)