<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From 4d1c7e168729231e9204a19a0de67385b356c3ce Mon Sep 17 00:00:00 2001
From: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Date: Fri, 16 Sep 2011 11:17:19 +0200
Subject: [PATCH 2/9] usb-host: reapurb error report fix

RH-Author: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Message-id: &lt;1316171846-30450-3-git-send-email-kraxel@redhat.com&gt;
Patchwork-id: 32851
O-Subject: [RHEL-6.2 kvm PATCH 2/9] usb-host: reapurb error report fix
Bugzilla: 733272
RH-Acked-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
RH-Acked-by: Alex Williamson &lt;alex.williamson@redhat.com&gt;
RH-Acked-by: Paul Moore &lt;pmoore@redhat.com&gt;

Don't report errors on devices which are in disconnected
and closing state.
(cherry picked from commit 40197c359b1f06cbaae5460336bca241c35f266e)
---
 usb-linux.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

Signed-off-by: Michal Novotny &lt;minovotn@redhat.com&gt;
---
 usb-linux.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/usb-linux.c b/usb-linux.c
index 868360d..b8d392a 100644
--- a/usb-linux.c
+++ b/usb-linux.c
@@ -308,9 +308,11 @@ static void async_complete(void *opaque)
                     fprintf(stderr, "husb: %d iso urbs finished at once\n", urbs);
                 }
                 return;
-
-            } if (errno == ENODEV &amp;&amp; !s-&gt;closing) {
-                do_disconnect(s);
+            }
+            if (errno == ENODEV) {
+                if (!s-&gt;closing) {
+                    do_disconnect(s);
+                }
                 return;
             }
 
-- 
1.7.4.4

</pre></body></html>