mirror of https://gitee.com/openkylin/qemu.git
usb-host: reapurb error report fix
Don't report errors on devices which are in disconnected and closing state.
This commit is contained in:
parent
e6a2f50042
commit
40197c359b
|
@ -312,9 +312,11 @@ static void async_complete(void *opaque)
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (errno == ENODEV && !s->closing) {
|
if (errno == ENODEV) {
|
||||||
trace_usb_host_disconnect(s->bus_num, s->addr);
|
if (!s->closing) {
|
||||||
do_disconnect(s);
|
trace_usb_host_disconnect(s->bus_num, s->addr);
|
||||||
|
do_disconnect(s);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue