Re: [Qemu-devel] [PATCH] usb-audio: ignore usb packages with wrong size

2018-12-11 Thread Philippe Mathieu-Daudé
On 12/11/18 8:26 AM, Gerd Hoffmann wrote: > usb packets with no payload (zero length) seem to happen in practice for > whatever reason. Add a check and skip the packet then, otherwise we'll > trigger an assert. > > Reported-by: Leonardo Soares Müller > Signed-off-by: Gerd Hoffmann Reviewed-by:

[Qemu-devel] [PATCH] usb-audio: ignore usb packages with wrong size

2018-12-10 Thread Gerd Hoffmann
usb packets with no payload (zero length) seem to happen in practice for whatever reason. Add a check and skip the packet then, otherwise we'll trigger an assert. Reported-by: Leonardo Soares Müller Signed-off-by: Gerd Hoffmann --- hw/usb/dev-audio.c | 3 +++ 1 file changed, 3 insertions(+) d