linux/sound/virtio
Yuho Choi 6c05d00af3 ALSA: virtio: reset device before deleting virtqueues
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: de3a9980d8 ("ALSA: virtio: add virtio sound driver")
Fixes: 575483e90a ("ALSA: virtio: introduce device suspend/resume support")
Cc: stable@vger.kernel.org
Signed-off-by: Yuho Choi <oss.patchbox@gmail.com>
Link: https://patch.msgid.link/20260911031121.1542502-1-oss.patchbox@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2026-09-13 09:11:34 +02:00
..
Kconfig
Makefile ALSA: misc: Use *-y instead of *-objs in Makefile 2024-05-08 18:18:13 +02:00
virtio_card.c ALSA: virtio: reset device before deleting virtqueues 2026-09-13 09:11:34 +02:00
virtio_card.h ALSA: virtio: add support for audio controls 2024-02-09 14:01:15 +01:00
virtio_chmap.c ALSA: virtio: introduce PCM channel map support 2021-03-07 09:08:20 +01:00
virtio_ctl_msg.c ALSA: virtio: Use guard() for spin locks 2025-09-01 13:54:28 +02:00
virtio_ctl_msg.h ALSA: virtio: handling control messages 2021-03-07 09:07:27 +01:00
virtio_jack.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
virtio_kctl.c ALSA: virtio: Validate control metadata from the device 2026-05-15 11:21:20 +02:00
virtio_pcm_msg.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
virtio_pcm_ops.c ALSA: virtio: Add missing 384 kHz PCM rate mapping 2026-05-16 15:42:30 +02:00
virtio_pcm.c ALSA: virtio: Add missing 384 kHz PCM rate mapping 2026-05-16 15:42:30 +02:00
virtio_pcm.h ALSA: virtio: drop an extaneous kernel-doc comment 2026-04-17 09:47:54 +02:00