peterdelevoryas / rpms / qemu

Forked from rpms/qemu 2 years ago
Clone

Blame 0146-usb-redir-Not-finding-an-async-urb-id-is-not-an-erro.patch

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