mvadkert / rpms / qemu

Forked from rpms/qemu 6 years ago
Clone
1ffd272
From 54a8b5462e71abbbf4a4c3c444f70abfc6659877 Mon Sep 17 00:00:00 2001
0fa3e51
From: Hans de Goede <hdegoede@redhat.com>
0fa3e51
Date: Sat, 31 Mar 2012 13:17:13 +0200
1ffd272
Subject: [PATCH] usb-redir: Not finding an async urb id is not an error
0fa3e51
0fa3e51
We clear our pending async urb list on device disconnect and we may still
0fa3e51
receive "packet complete" packets from our peer after this, which will then
0fa3e51
refer to packet ids no longer in our list.
0fa3e51
0fa3e51
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
0fa3e51
---
1ffd272
 usb-redir.c | 2 +-
0fa3e51
 1 file changed, 1 insertion(+), 1 deletion(-)
0fa3e51
0fa3e51
diff --git a/usb-redir.c b/usb-redir.c
1ffd272
index a424826..ec9170a 100644
0fa3e51
--- a/usb-redir.c
0fa3e51
+++ b/usb-redir.c
0fa3e51
@@ -286,7 +286,7 @@ static AsyncURB *async_find(USBRedirDevice *dev, uint32_t packet_id)
0fa3e51
             return aurb;
0fa3e51
         }
0fa3e51
     }
0fa3e51
-    ERROR("could not find async urb for packet_id %u\n", packet_id);
0fa3e51
+    DPRINTF("could not find async urb for packet_id %u\n", packet_id);
0fa3e51
     return NULL;
0fa3e51
 }
0fa3e51