mirror of
https://github.com/xemu-project/xemu.git
synced 2026-07-11 01:24:41 +02:00
xblc: Call usb_packet_skip to consume data when handling USB_TOKEN_OUT
This commit is contained in:
committed by
mborgerson
parent
2056839b6b
commit
49cd4ce5d0
+1
-1
@@ -277,7 +277,7 @@ static void xblc_handle_data(USBDevice *dev, USBPacket *p)
|
||||
break;
|
||||
}
|
||||
|
||||
if (p->pid == USB_TOKEN_IN && p->iov.size > p->actual_length) {
|
||||
if (p->iov.size > p->actual_length) {
|
||||
usb_packet_skip(p, p->iov.size - p->actual_length);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user