|
@@ -625,8 +625,10 @@ int xhci_run(struct usb_hcd *hcd)
|
|
|
if (!command)
|
|
|
return -ENOMEM;
|
|
|
|
|
|
- xhci_queue_vendor_command(xhci, command, 0, 0, 0,
|
|
|
+ ret = xhci_queue_vendor_command(xhci, command, 0, 0, 0,
|
|
|
TRB_TYPE(TRB_NEC_GET_FW));
|
|
|
+ if (ret)
|
|
|
+ xhci_free_command(xhci, command);
|
|
|
}
|
|
|
xhci_dbg_trace(xhci, trace_xhci_dbg_init,
|
|
|
"Finished xhci_run for USB2 roothub");
|