Skip to content

Commit 4d6aa40

Browse files
committed
Set RX response length
1 parent 77eea70 commit 4d6aa40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

virtio-snd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ VSND_GEN_TX_QUEUE_HANDLER(flush, 0);
593593
response->status = \
594594
bad_msg_err ? VIRTIO_SND_S_IO_ERR : VIRTIO_SND_S_OK; \
595595
response->latency_bytes = ret_len; \
596-
*plen = sizeof(*response); \
596+
*plen = sizeof(virtio_snd_pcm_status_t) + ret_len; \
597597
goto early_continue; \
598598
} \
599599
\

0 commit comments

Comments
 (0)