usb-ehci: Fix an assert whenever isoc transfers are used
authorHans de Goede <hdegoede@redhat.com>
Fri, 6 Jul 2012 10:09:33 +0000 (12:09 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 9 Jul 2012 09:59:54 +0000 (11:59 +0200)
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>
hw/usb/hcd-ehci.c

index 0bdfbe8b3579883883aa05a5109d7ab16f2c3871..f6126107f82e03a846eddca37ee8db59eaeb3d93 100644 (file)
@@ -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);