We clear our pending async urb list on device disconnect and we may still
receive "packet complete" packets from our peer after this, which will then
refer to packet ids no longer in our list.

Signed-off-by: Hans de Goede <hdego...@redhat.com>
---
 hw/usb/redirect.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c
index 11d3b2b..b872626 100644
--- a/hw/usb/redirect.c
+++ b/hw/usb/redirect.c
@@ -276,7 +276,7 @@ static AsyncURB *async_find(USBRedirDevice *dev, uint32_t 
packet_id)
             return aurb;
         }
     }
-    ERROR("could not find async urb for packet_id %u\n", packet_id);
+    DPRINTF("could not find async urb for packet_id %u\n", packet_id);
     return NULL;
 }
 
-- 
1.7.9.3


Reply via email to