633487df8d
The payload size returned by command VIRTIO_SND_R_PCM_INFO is wrong. The code in process_cmd() assumes that all commands return only a virtio_snd_hdr payload, but some commands like VIRTIO_SND_R_PCM_INFO may return an additional payload. Add a zero initialized payload_size variable to struct virtio_snd_ctrl_command to allow for additional payloads. Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Volker Rümelin <vr_qemu@t-online.de> Message-Id: <20240218083351.8524-1-vr_qemu@t-online.de> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> |
||
---|---|---|
.. | ||
ac97.c | ||
ac97.h | ||
adlib.c | ||
asc.c | ||
cs4231.c | ||
cs4231a.c | ||
es1370.c | ||
fmopl.c | ||
fmopl.h | ||
gus.c | ||
gusemu_hal.c | ||
gusemu_mixer.c | ||
gusemu.h | ||
gustate.h | ||
hda-codec-common.h | ||
hda-codec.c | ||
intel-hda-defs.h | ||
intel-hda.c | ||
intel-hda.h | ||
Kconfig | ||
lm4549.c | ||
lm4549.h | ||
marvell_88w8618.c | ||
meson.build | ||
pcspk.c | ||
pl041.c | ||
pl041.h | ||
pl041.hx | ||
sb16.c | ||
soundhw.c | ||
trace-events | ||
trace.h | ||
via-ac97.c | ||
virtio-snd-pci.c | ||
virtio-snd.c | ||
wm8750.c |