projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55903f1
)
usb-redir: Only add actually in flight packets to the in flight queue
author
Hans de Goede
<hdegoede@redhat.com>
Thu, 15 Nov 2012 13:14:59 +0000
(14:14 +0100)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Fri, 16 Nov 2012 10:27:32 +0000
(11:27 +0100)
Packets which are queued up, but not yet handed over to the device, are
*not* in flight.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/redirect.c
patch
|
blob
|
history
diff --git
a/hw/usb/redirect.c
b/hw/usb/redirect.c
index be9a232059d871aea4a64aeaa1354cf0cef7f4d4..32ae1034cc052eef9b17f33cf417f89761c62c38 100644
(file)
--- a/
hw/usb/redirect.c
+++ b/
hw/usb/redirect.c
@@
-342,7
+342,9
@@
static void usbredir_fill_already_in_flight_from_ep(USBRedirDevice *dev,
if (p->combined && p != p->combined->first) {
continue;
}
- packet_id_queue_add(&dev->already_in_flight, p->id);
+ if (p->state == USB_PACKET_ASYNC) {
+ packet_id_queue_add(&dev->already_in_flight, p->id);
+ }
}
}