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

login
register
mail settings
Submitter Gerd Hoffmann
Date Jan. 8, 2013, 1:16 p.m.
Message ID <1357650999-17219-3-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/210413/
State New
Headers show

Comments

Gerd Hoffmann - Jan. 8, 2013, 1:16 p.m.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/usb/hcd-xhci.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index 5d4d876..b4736f5 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);
 }