dcavalca / rpms / qemu

Forked from rpms/qemu a year ago
Clone

Blame 0202-usb-ehci-Fix-an-assert-whenever-isoc-transfers-are-u.patch

ad6610
From 050146c8b005683cbc36a837844d2d637b27100c Mon Sep 17 00:00:00 2001
ad6610
From: Hans de Goede <hdegoede@redhat.com>
ad6610
Date: Fri, 6 Jul 2012 12:04:15 +0200
ad6610
Subject: [PATCH] usb-ehci: Fix an assert whenever isoc transfers are used
ad6610
ad6610
hcd-ehci.c is missing an usb_packet_init() call for the ipacket UsbPacket
ad6610
it uses for isoc transfers, triggering an assert (taking the entire vm down)
ad6610
in usb_packet_setup as soon as any isoc transfers are done by a high speed
ad6610
USB device.
ad6610
ad6610
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
ad6610
---
ad6610
 hw/usb/hcd-ehci.c |    1 +
ad6610
 1 file changed, 1 insertion(+)
ad6610
ad6610
diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
ad6610
index e759c99..eaa3ddd 100644
ad6610
--- a/hw/usb/hcd-ehci.c
ad6610
+++ b/hw/usb/hcd-ehci.c
ad6610
@@ -2300,6 +2300,7 @@ static int usb_ehci_initfn(PCIDevice *dev)
ad6610
     s->frame_timer = qemu_new_timer_ns(vm_clock, ehci_frame_timer, s);
ad6610
     QTAILQ_INIT(&s->aqueues);
ad6610
     QTAILQ_INIT(&s->pqueues);
ad6610
+    usb_packet_init(&s->ipacket);
ad6610
 
ad6610
     qemu_register_reset(ehci_reset, s);
ad6610
 
ad6610
-- 
ad6610
1.7.10.4
ad6610