summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-06-14 12:24:04 +0100
committerGerd Hoffmann <kraxel@redhat.com>2011-07-05 15:09:01 +0200
commit000eb4fa525d0b9b2d2b2a2ad4925863af60e5f7 (patch)
treecf71d473a2edac538cf072a32e6959695d6f0950 /hw
parent9312805d33e8b106bae356d13a8071fb37d75554 (diff)
downloadqemu-000eb4fa525d0b9b2d2b2a2ad4925863af60e5f7.tar.gz
qemu-000eb4fa525d0b9b2d2b2a2ad4925863af60e5f7.tar.bz2
qemu-000eb4fa525d0b9b2d2b2a2ad4925863af60e5f7.zip
hw/usb-musb.c: Don't misuse usb_packet_complete()
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>
Diffstat (limited to 'hw')
-rw-r--r--hw/usb-musb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb-musb.c b/hw/usb-musb.c
index 21f35afa92..d15971fcfc 100644
--- a/hw/usb-musb.c
+++ b/hw/usb-musb.c
@@ -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)