Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376722
b: refs/heads/master
c: 88696ae
h: refs/heads/master
v: v3
  • Loading branch information
Vladimir Murzin authored and Sarah Sharp committed May 24, 2013
1 parent 01e0eab commit 7974896
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 331de00a64e5027365145bdf51da27b9ce15dfd5
refs/heads/master: 88696ae432ce7321540ac53d9caab3de9118b094
4 changes: 4 additions & 0 deletions trunk/drivers/usb/host/xhci-mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1827,6 +1827,9 @@ void xhci_mem_cleanup(struct xhci_hcd *xhci)
}
spin_unlock_irqrestore(&xhci->lock, flags);

if (!xhci->rh_bw)
goto no_bw;

num_ports = HCS_MAX_PORTS(xhci->hcs_params1);
for (i = 0; i < num_ports; i++) {
struct xhci_interval_bw_table *bwt = &xhci->rh_bw[i].bw_table;
Expand All @@ -1845,6 +1848,7 @@ void xhci_mem_cleanup(struct xhci_hcd *xhci)
}
}

no_bw:
xhci->num_usb2_ports = 0;
xhci->num_usb3_ports = 0;
xhci->num_active_eps = 0;
Expand Down

0 comments on commit 7974896

Please sign in to comment.