mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
host-libusb: Correct test for USB packet state
USB_RET_ASYNC is -6, so inflight was always false. Signed-off-by: Ed Maste <emaste@freebsd.org> Cc: qemu-stable@nongnu.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
@@ -385,7 +385,7 @@ out:
|
||||
static void usb_host_req_abort(USBHostRequest *r)
|
||||
{
|
||||
USBHostDevice *s = r->host;
|
||||
bool inflight = (r->p && r->p->state == USB_RET_ASYNC);
|
||||
bool inflight = (r->p && r->p->state == USB_PACKET_ASYNC);
|
||||
|
||||
if (inflight) {
|
||||
r->p->status = USB_RET_NODEV;
|
||||
|
||||
Reference in New Issue
Block a user