Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > e387e0e87becf662171af929185bd105 > files > 33

qemu-0.15.1-9.fc16.src.rpm

diff --git a/hw/usb-hub.c b/hw/usb-hub.c
index b49a2fe..6278825 100644
--- a/hw/usb-hub.c
+++ b/hw/usb-hub.c
@@ -207,10 +207,14 @@ static void usb_hub_complete(USBPort *port, USBPacket *packet)
     /*
      * Just pass it along upstream for now.
      *
-     * If we ever inplement usb 2.0 split transactions this will
+     * If we ever implement usb 2.0 split transactions this will
      * become a little more complicated ...
+     *
+     * Can't use usb_packet_complete() here because packet->owner is
+     * cleared already, go call the ->complete() callback directly
+     * instead.
      */
-    usb_packet_complete(&s->dev, packet);
+    s->dev.port->ops->complete(s->dev.port, packet);
 }
 
 static void usb_hub_handle_attach(USBDevice *dev)