|
@@ -1812,7 +1812,6 @@ void xhci_mem_cleanup(struct xhci_hcd *xhci)
|
|
|
|
|
|
if (xhci->lpm_command)
|
|
|
xhci_free_command(xhci, xhci->lpm_command);
|
|
|
- xhci->cmd_ring_reserved_trbs = 0;
|
|
|
if (xhci->cmd_ring)
|
|
|
xhci_ring_free(xhci, xhci->cmd_ring);
|
|
|
xhci->cmd_ring = NULL;
|
|
@@ -1877,6 +1876,7 @@ void xhci_mem_cleanup(struct xhci_hcd *xhci)
|
|
|
}
|
|
|
|
|
|
no_bw:
|
|
|
+ xhci->cmd_ring_reserved_trbs = 0;
|
|
|
xhci->num_usb2_ports = 0;
|
|
|
xhci->num_usb3_ports = 0;
|
|
|
xhci->num_active_eps = 0;
|