Patchwork [2/6] xhci: call xhci_detach_slot on root port detach too

login
register
mail settings
Submitter Gerd Hoffmann
Date Jan. 14, 2013, 11:50 a.m.
Message ID <1358164219-14070-3-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/211781/
State New
Headers show

Comments

Gerd Hoffmann - Jan. 14, 2013, 11:50 a.m.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/usb/hcd-xhci.c |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index 3ff8bc1..5b2e7f8 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -2957,6 +2957,7 @@  static void xhci_detach(USBPort *usbport)
     XHCIState *xhci = usbport->opaque;
     XHCIPort *port = xhci_lookup_port(xhci, usbport);
 
+    xhci_detach_slot(xhci, usbport);
     xhci_port_update(port, 1);
 }