mirror of
https://github.com/xemu-project/xemu.git
synced 2026-07-11 01:24:41 +02:00
xblc: Ensure input packets are always padded
This commit is contained in:
committed by
mborgerson
parent
371c51cd2c
commit
6ff8dc23e3
+4
-4
@@ -260,10 +260,6 @@ static void usb_xblc_handle_data(USBDevice *dev, USBPacket *p)
|
||||
remaining -= chunk_len;
|
||||
}
|
||||
|
||||
if (p->iov.size > p->actual_length) {
|
||||
usb_packet_skip(p, p->iov.size - p->actual_length);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case USB_TOKEN_OUT:
|
||||
@@ -286,6 +282,10 @@ static void usb_xblc_handle_data(USBDevice *dev, USBPacket *p)
|
||||
assert(!"Iso cannot report STALL/HALT");
|
||||
break;
|
||||
}
|
||||
|
||||
if (p->pid == USB_TOKEN_IN && p->iov.size > p->actual_length) {
|
||||
usb_packet_skip(p, p->iov.size - p->actual_length);
|
||||
}
|
||||
}
|
||||
|
||||
static void xblc_audio_channel_init(USBXBLCState *s, bool capture, Error **errp)
|
||||
|
||||
Reference in New Issue
Block a user