mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
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: |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| virtio_card.c | ||
| virtio_card.h | ||
| virtio_chmap.c | ||
| virtio_ctl_msg.c | ||
| virtio_ctl_msg.h | ||
| virtio_jack.c | ||
| virtio_kctl.c | ||
| virtio_pcm_msg.c | ||
| virtio_pcm_ops.c | ||
| virtio_pcm.c | ||
| virtio_pcm.h | ||