diff options
| author | Yuho Choi <oss.patchbox@gmail.com> | 2026-09-10 23:11:21 -0400 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-09-13 09:11:34 +0200 |
| commit | 6c05d00af307560e6a9f1631d6270d3df5aa2272 (patch) | |
| tree | 5a5cac67f5c9c37b3c2235964b42658295de2279 /scripts/Makefile.thinlto | |
| parent | fd95e68df6fe66344161a1329cbe5e5805e7b704 (diff) | |
| download | linux-stable-6c05d00af307560e6a9f1631d6270d3df5aa2272.tar.gz linux-stable-6c05d00af307560e6a9f1631d6270d3df5aa2272.zip | |
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: de3a9980d8c3 ("ALSA: virtio: add virtio sound driver")
Fixes: 575483e90a32 ("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>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
