usb: xhci: fix wild pointers in xhci_mem_cleanup
[pandora-kernel.git] / drivers / usb / host / xhci-mem.c
index ab023b1..e3f70d3 100644 (file)
@@ -1789,6 +1789,11 @@ no_bw:
        kfree(xhci->port_array);
        kfree(xhci->rh_bw);
 
+       xhci->usb2_ports = NULL;
+       xhci->usb3_ports = NULL;
+       xhci->port_array = NULL;
+       xhci->rh_bw = NULL;
+
        xhci->page_size = 0;
        xhci->page_shift = 0;
        xhci->bus_state[0].bus_suspended = 0;