linux/drivers/virtio
Xuan Zhuo fc6d70f40b virtio_ring: check desc == NULL when using indirect with packed
When using indirect with packed, we don't check for allocation failures.
This patch checks that and fall back on direct.

Fixes: 1ce9e6055f ("virtio_ring: introduce packed ring support")
Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Link: https://lore.kernel.org/r/20211020112323.67466-3-xuanzhuo@linux.alibaba.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2021-11-01 05:26:47 -04:00
..
Kconfig virtio-pci: introduce legacy device module 2021-11-01 04:30:34 -04:00
Makefile virtio-pci: introduce legacy device module 2021-11-01 04:30:34 -04:00
virtio_balloon.c virtio-balloon: Use virtio_find_vqs() helper 2021-09-06 07:20:56 -04:00
virtio_dma_buf.c virtio: fix build for configs without dma-bufs 2020-08-19 06:43:28 +02:00
virtio_input.c virtio-input: add multi-touch support 2021-02-23 07:52:59 -05:00
virtio_mem.c virtio-mem: use a single dynamic memory group for a single virtio-mem device 2021-09-08 11:50:23 -07:00
virtio_mmio.c virtio-mmio: Use to_virtio_mmio_device() to simply code 2021-03-14 04:37:35 -04:00
virtio_pci_common.c virtio-pci: introduce legacy device module 2021-11-01 04:30:34 -04:00
virtio_pci_common.h virtio-pci: introduce legacy device module 2021-11-01 04:30:34 -04:00
virtio_pci_legacy_dev.c virtio-pci: introduce legacy device module 2021-11-01 04:30:34 -04:00
virtio_pci_legacy.c virtio-pci: introduce legacy device module 2021-11-01 04:30:34 -04:00
virtio_pci_modern_dev.c virtio-pci library: introduce vp_modern_get_driver_features() 2021-07-08 07:49:01 -04:00
virtio_pci_modern.c virtio_pci_modern: __force cast the notify mapping 2021-05-04 04:19:58 -04:00
virtio_ring.c virtio_ring: check desc == NULL when using indirect with packed 2021-11-01 05:26:47 -04:00
virtio_vdpa.c virtio_vdpa: setup correct vq size with callbacks get_vq_num_{max,min} 2021-11-01 04:30:35 -04:00
virtio.c virtio: write back F_VERSION_1 before validate 2021-10-13 08:35:36 -04:00