diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2011-12-13 15:58:19 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-01-17 09:44:50 +0100 |
commit | 25d5de7d81a5b1a5c625775648d3d92e8398741c (patch) | |
tree | d27fdeb3d10f8fb510722ff093b814764d726cbb /hw/usb-uhci.c | |
parent | f003397ce95441cd8de01a728affb3de7accd1dd (diff) | |
download | qemu-25d5de7d81a5b1a5c625775648d3d92e8398741c.zip qemu-25d5de7d81a5b1a5c625775648d3d92e8398741c.tar.gz qemu-25d5de7d81a5b1a5c625775648d3d92e8398741c.tar.bz2 |
usb: link packets to endpoints not devices
Add USBEndpoint for the control endpoint to USBDevices. Link async
packets to the USBEndpoint instead of the USBDevice.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb-uhci.c')
-rw-r--r-- | hw/usb-uhci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index f8912e2..25d4e8c 100644 --- a/hw/usb-uhci.c +++ b/hw/usb-uhci.c @@ -245,7 +245,8 @@ static void uhci_async_cancel_device(UHCIState *s, USBDevice *dev) UHCIAsync *curr, *n; QTAILQ_FOREACH_SAFE(curr, &s->async_pending, next, n) { - if (curr->packet.owner != dev) { + if (curr->packet.owner == NULL || + curr->packet.owner->dev != dev) { continue; } uhci_async_unlink(s, curr); |