Re: [PATCH v1] ALSA: virtio: reset device before deleting virtqueues
From: Takashi Iwai
Date: Sun Sep 13 2026 - 03:13:05 EST
On Fri, 11 Sep 2026 05:11:21 +0200,
Yuho Choi wrote:
>
> virtsnd_remove() and virtsnd_freeze() delete the virtqueues before
> resetting the device. del_vqs() frees the vring backing, but does not
> provide a generic device quiesce operation. In particular, modern
> virtio-pci keeps enabled queues active until the device is reset.
>
> Reset the device before deleting the virtqueues so it can no longer
> access the vring memory when that memory is released. This also covers
> probe failures after DRIVER_OK, which unwind through virtsnd_remove().
>
> Fixes: de3a9980d8c3 ("ALSA: virtio: add virtio sound driver")
> Fixes: 575483e90a32 ("ALSA: virtio: introduce device suspend/resume support")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Yuho Choi <oss.patchbox@xxxxxxxxx>
Applied now. Thanks.
Takashi