git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
usb: xhci: fix wild pointers in xhci_mem_cleanup
[pandora-kernel.git]
/
drivers
/
usb
/
host
/
xhci-mem.c
diff --git
a/drivers/usb/host/xhci-mem.c
b/drivers/usb/host/xhci-mem.c
index
ab023b1
..
e3f70d3
100644
(file)
--- a/
drivers/usb/host/xhci-mem.c
+++ b/
drivers/usb/host/xhci-mem.c
@@
-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;