projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
522079d
)
ehci: Properly cleanup packets on cancel
author
Hans de Goede
<hdegoede@redhat.com>
Thu, 30 Aug 2012 13:00:33 +0000
(15:00 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Tue, 11 Sep 2012 05:42:59 +0000
(07:42 +0200)
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hw/usb/hcd-ehci.c
patch
|
blob
|
history
diff --git
a/hw/usb/hcd-ehci.c
b/hw/usb/hcd-ehci.c
index 78a248f08b1c0530b66eb465ba62ae4ba5e98be0..4fe85c8ef7a6368ecdec153154287682775c383e 100644
(file)
--- a/
hw/usb/hcd-ehci.c
+++ b/
hw/usb/hcd-ehci.c
@@
-747,6
+747,8
@@
static void ehci_free_packet(EHCIPacket *p)
trace_usb_ehci_packet_action(p->queue, p, "free");
if (p->async == EHCI_ASYNC_INFLIGHT) {
usb_cancel_packet(&p->packet);
+ usb_packet_unmap(&p->packet, &p->sgl);
+ qemu_sglist_destroy(&p->sgl);
}
QTAILQ_REMOVE(&p->queue->packets, p, next);
usb_packet_cleanup(&p->packet);