From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:36099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzQYo-0005IV-Bf for qemu-devel@nongnu.org; Fri, 02 Sep 2011 06:01:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzQYn-0003Ux-9B for qemu-devel@nongnu.org; Fri, 02 Sep 2011 06:01:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzQYn-0003Uh-2A for qemu-devel@nongnu.org; Fri, 02 Sep 2011 06:01:17 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p82A1GI6012271 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 2 Sep 2011 06:01:16 -0400 From: Gerd Hoffmann Date: Fri, 2 Sep 2011 12:01:08 +0200 Message-Id: <1314957674-30133-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1314957674-30133-1-git-send-email-kraxel@redhat.com> References: <1314957674-30133-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 1/7] usb-host: reapurb error report fix List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann 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