diff options
| -rw-r--r-- | drivers/usb/host/xhci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 51326425f9cc..b2ff1ff1a02f 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c | |||
| @@ -625,8 +625,10 @@ int xhci_run(struct usb_hcd *hcd) | |||
| 625 | if (!command) | 625 | if (!command) |
| 626 | return -ENOMEM; | 626 | return -ENOMEM; |
| 627 | 627 | ||
| 628 | xhci_queue_vendor_command(xhci, command, 0, 0, 0, | 628 | ret = xhci_queue_vendor_command(xhci, command, 0, 0, 0, |
| 629 | TRB_TYPE(TRB_NEC_GET_FW)); | 629 | TRB_TYPE(TRB_NEC_GET_FW)); |
| 630 | if (ret) | ||
| 631 | xhci_free_command(xhci, command); | ||
| 630 | } | 632 | } |
| 631 | xhci_dbg_trace(xhci, trace_xhci_dbg_init, | 633 | xhci_dbg_trace(xhci, trace_xhci_dbg_init, |
| 632 | "Finished xhci_run for USB2 roothub"); | 634 | "Finished xhci_run for USB2 roothub"); |
