Commit bac95eed authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] usb: hcd locking fix

Missing up() on an error path.

Cc: Greg KH <greg@kroah.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 72747577
......@@ -708,6 +708,7 @@ int usb_register_bus(struct usb_bus *bus)
bus->busnum = busnum;
} else {
printk (KERN_ERR "%s: too many buses\n", usbcore_name);
up(&usb_bus_list_lock);
return -E2BIG;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment