]> git.proxmox.com Git - qemu.git/commitdiff
hw/usb-musb.c: Don't misuse usb_packet_complete()
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 14 Jun 2011 11:24:04 +0000 (12:24 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 5 Jul 2011 13:09:01 +0000 (15:09 +0200)
In musb_packet() handle final processing of non-asynchronous
USB packets by directly calling musb_schedule_cb() rather than
going through usb_packet_complete(). The latter will trigger
an assertion because the packet doesn't belong to a device.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-musb.c

index 21f35afa924db4c3f693a24d523d0205d5559146..d15971fcfc90388e6dd2f9d6cd0eab6c3c473d5d 100644 (file)
@@ -616,7 +616,7 @@ static void musb_packet(MUSBState *s, MUSBEndPoint *ep,
     }
 
     ep->status[dir] = ret;
-    usb_packet_complete(s->port.dev, &ep->packey[dir].p);
+    musb_schedule_cb(s->port.dev, &ep->packey[dir].p);
 }
 
 static void musb_tx_packet_complete(USBPacket *packey, void *opaque)