mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
usb-redir: Only add actually in flight packets to the in flight queue
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>
This commit is contained in:
parent
55903f1d2d
commit
2cb343b442
1 changed files with 3 additions and 1 deletions
|
@ -342,8 +342,10 @@ static void usbredir_fill_already_in_flight_from_ep(USBRedirDevice *dev,
|
||||||
if (p->combined && p != p->combined->first) {
|
if (p->combined && p != p->combined->first) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (p->state == USB_PACKET_ASYNC) {
|
||||||
packet_id_queue_add(&dev->already_in_flight, p->id);
|
packet_id_queue_add(&dev->already_in_flight, p->id);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void usbredir_fill_already_in_flight(USBRedirDevice *dev)
|
static void usbredir_fill_already_in_flight(USBRedirDevice *dev)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue