qemu-usb: handle STALL_ERROR

Issue #1945.
This commit is contained in:
Josef Söntgen 2016-04-21 14:08:13 +02:00 committed by Christian Helmuth
parent 133c46a784
commit 2dfbfd7173

View File

@ -76,8 +76,12 @@ struct Completion : Usb::Completion
if (packet.succeded)
p->status = USB_RET_SUCCESS;
else
p->status = USB_RET_IOERROR;
else {
if (packet.error == Usb::Packet_descriptor::STALL_ERROR)
p->status = USB_RET_STALL;
else
p->status = USB_RET_IOERROR;
}
switch (packet.type) {
case Usb::Packet_descriptor::CONFIG: