qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 1/7] usb-host: reapurb error report fix


From: Gerd Hoffmann
Subject: [Qemu-devel] [PATCH 1/7] usb-host: reapurb error report fix
Date: Fri, 2 Sep 2011 12:01:08 +0200

Don't report errors on devices which are in disconnected
and closing state.
(cherry picked from commit 3d09d54e57b92aaaba8d4e8c0d1c9901f1a56c7f)

Conflicts:

        usb-linux.c
---
 usb-linux.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/usb-linux.c b/usb-linux.c
index 53cc5fc..7d8a103 100644
--- a/usb-linux.c
+++ b/usb-linux.c
@@ -308,8 +308,10 @@ static void async_complete(void *opaque)
                 }
                 return;
             }
-            if (errno == ENODEV && !s->closing) {
-                do_disconnect(s);
+            if (errno == ENODEV) {
+                if (!s->closing) {
+                    do_disconnect(s);
+                }
                 return;
             }
 
-- 
1.7.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]