diff options
-rw-r--r-- | drivers/usb/host/xhci-mem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index 0b5ff2618de7..497ed7723e44 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c | |||
@@ -1815,6 +1815,7 @@ void xhci_mem_cleanup(struct xhci_hcd *xhci) | |||
1815 | xhci->event_ring = NULL; | 1815 | xhci->event_ring = NULL; |
1816 | xhci_dbg(xhci, "Freed event ring\n"); | 1816 | xhci_dbg(xhci, "Freed event ring\n"); |
1817 | 1817 | ||
1818 | xhci->cmd_ring_reserved_trbs = 0; | ||
1818 | if (xhci->cmd_ring) | 1819 | if (xhci->cmd_ring) |
1819 | xhci_ring_free(xhci, xhci->cmd_ring); | 1820 | xhci_ring_free(xhci, xhci->cmd_ring); |
1820 | xhci->cmd_ring = NULL; | 1821 | xhci->cmd_ring = NULL; |