diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-07-06 12:09:33 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-07-09 11:59:54 +0200 |
commit | 7341ea075c09258b98a1d0efc60efd402cbfc9b4 (patch) | |
tree | 2caf84623d9f0d15867ef41a59877c330ed5593e | |
parent | 9bc3a3a216e2689bfcdd36c3e079333bbdbf3ba0 (diff) | |
download | qemu-7341ea075c09258b98a1d0efc60efd402cbfc9b4.zip qemu-7341ea075c09258b98a1d0efc60efd402cbfc9b4.tar.gz qemu-7341ea075c09258b98a1d0efc60efd402cbfc9b4.tar.bz2 |
usb-ehci: Fix an assert whenever isoc transfers are used
hcd-ehci.c is missing an usb_packet_init() call for the ipacket UsbPacket
it uses for isoc transfers, triggering an assert (taking the entire vm down)
in usb_packet_setup as soon as any isoc transfers are done by a high speed
USB device.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | hw/usb/hcd-ehci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c index 0bdfbe8..f612610 100644 --- a/hw/usb/hcd-ehci.c +++ b/hw/usb/hcd-ehci.c @@ -2581,6 +2581,7 @@ static int usb_ehci_initfn(PCIDevice *dev) s->async_bh = qemu_bh_new(ehci_async_bh, s); QTAILQ_INIT(&s->aqueues); QTAILQ_INIT(&s->pqueues); + usb_packet_init(&s->ipacket); qemu_register_reset(ehci_reset, s); |