diff options
Diffstat (limited to 'drivers/usb/host/xhci-mem.c')
-rw-r--r-- | drivers/usb/host/xhci-mem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index d34b91a135a1..6ff2e298bff8 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c | |||
@@ -141,6 +141,7 @@ static struct xhci_ring *xhci_ring_alloc(struct xhci_hcd *xhci, | |||
141 | if (!ring) | 141 | if (!ring) |
142 | return 0; | 142 | return 0; |
143 | 143 | ||
144 | INIT_LIST_HEAD(&ring->td_list); | ||
144 | if (num_segs == 0) | 145 | if (num_segs == 0) |
145 | return ring; | 146 | return ring; |
146 | 147 | ||
@@ -188,6 +189,7 @@ fail: | |||
188 | return 0; | 189 | return 0; |
189 | } | 190 | } |
190 | 191 | ||
192 | /* All the xhci_tds in the ring's TD list should be freed at this point */ | ||
191 | void xhci_free_virt_device(struct xhci_hcd *xhci, int slot_id) | 193 | void xhci_free_virt_device(struct xhci_hcd *xhci, int slot_id) |
192 | { | 194 | { |
193 | struct xhci_virt_device *dev; | 195 | struct xhci_virt_device *dev; |