]> git.proxmox.com Git - qemu.git/blobdiff - hw/usb/host-libusb.c
host-libusb: Correct test for USB packet state
[qemu.git] / hw / usb / host-libusb.c
index f3de4591fd875aa46d6b95148666624e5364cb0b..3a582c526dd2c2dcf66531f681da9f24bfc30504 100644 (file)
@@ -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;