diff options
author | Volker Rümelin <vr_qemu@t-online.de> | 2024-02-18 09:33:41 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2024-03-12 17:56:55 -0400 |
commit | 633487df8d303b37a88584d5a57a39dbcd91c7bf (patch) | |
tree | 6e66905f675403d5bcbbe76c7fe57950f4b74d7f /.gitignore | |
parent | 3a95f572112ab4c789d66af666644adcdb2b45a6 (diff) |
hw/audio/virtio-sound: return correct command response size
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>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions