[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 02/18] usb-host: reapurb error report fix
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 02/18] usb-host: reapurb error report fix |
Date: |
Fri, 2 Sep 2011 11:56:31 +0200 |
Don't report errors on devices which are in disconnected
and closing state.
---
usb-linux.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/usb-linux.c b/usb-linux.c
index 4e4df61..12e8772 100644
--- a/usb-linux.c
+++ b/usb-linux.c
@@ -312,9 +312,11 @@ static void async_complete(void *opaque)
}
return;
}
- if (errno == ENODEV && !s->closing) {
- trace_usb_host_disconnect(s->bus_num, s->addr);
- do_disconnect(s);
+ if (errno == ENODEV) {
+ if (!s->closing) {
+ trace_usb_host_disconnect(s->bus_num, s->addr);
+ do_disconnect(s);
+ }
return;
}
--
1.7.1
- [Qemu-devel] [PULL] usb patch queue, Gerd Hoffmann, 2011/09/02
- [Qemu-devel] [PATCH 03/18] usb-host: fix halted endpoints, Gerd Hoffmann, 2011/09/02
- [Qemu-devel] [PATCH 02/18] usb-host: reapurb error report fix,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 04/18] usb-host: limit open retries, Gerd Hoffmann, 2011/09/02
- [Qemu-devel] [PATCH 01/18] usb-host: start tracing support, Gerd Hoffmann, 2011/09/02
- [Qemu-devel] [PATCH 11/18] usb: fix use after free, Gerd Hoffmann, 2011/09/02
- [Qemu-devel] [PATCH 13/18] usb-ccid: remote wakeup support, Gerd Hoffmann, 2011/09/02
- [Qemu-devel] [PATCH 10/18] usb-host: parse port in /proc/bus/usb/devices scan, Gerd Hoffmann, 2011/09/02
- [Qemu-devel] [PATCH 09/18] usb-host: constify port, Gerd Hoffmann, 2011/09/02
- [Qemu-devel] [PATCH 05/18] usb-host: fix configuration tracking., Gerd Hoffmann, 2011/09/02
- [Qemu-devel] [PATCH 06/18] usb-host: claim port, Gerd Hoffmann, 2011/09/02
- [Qemu-devel] [PATCH 08/18] usb-ehci: handle siTDs, Gerd Hoffmann, 2011/09/02
- [Qemu-devel] [PATCH 07/18] usb-host: endpoint table fixup, Gerd Hoffmann, 2011/09/02