xhci: call xhci_detach_slot on root port detach too
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 8 Jan 2013 12:06:57 +0000 (13:06 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 14 Jan 2013 07:59:40 +0000 (08:59 +0100)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-xhci.c

index 3ff8bc1..5b2e7f8 100644 (file)
@@ -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);
 }