|
@@ -2520,6 +2520,7 @@ struct usb_hcd *__usb_create_hcd(const struct hc_driver *driver,
|
|
hcd->bandwidth_mutex = kmalloc(sizeof(*hcd->bandwidth_mutex),
|
|
hcd->bandwidth_mutex = kmalloc(sizeof(*hcd->bandwidth_mutex),
|
|
GFP_KERNEL);
|
|
GFP_KERNEL);
|
|
if (!hcd->bandwidth_mutex) {
|
|
if (!hcd->bandwidth_mutex) {
|
|
|
|
+ kfree(hcd->address0_mutex);
|
|
kfree(hcd);
|
|
kfree(hcd);
|
|
dev_dbg(dev, "hcd bandwidth mutex alloc failed\n");
|
|
dev_dbg(dev, "hcd bandwidth mutex alloc failed\n");
|
|
return NULL;
|
|
return NULL;
|