Re: [PATCH v5 2/2] virtio_ring: check desc == NULL when using indirect with packed

2021-10-20 Thread Michael S. Tsirkin
On Wed, Oct 20, 2021 at 07:05:51PM +0800, Xuan Zhuo wrote: > When using indirect with packed, we don't check for allocation failures. > This patch checks that and fall back on direct. > > Fixes: 1ce9e6055fa ("virtio_ring: introduce packed ring support") > Signed-off-by: Xuan Zhuo > --- > drivers

[PATCH v5 2/2] virtio_ring: check desc == NULL when using indirect with packed

2021-10-20 Thread Xuan Zhuo
When using indirect with packed, we don't check for allocation failures. This patch checks that and fall back on direct. Fixes: 1ce9e6055fa ("virtio_ring: introduce packed ring support") Signed-off-by: Xuan Zhuo --- drivers/virtio/virtio_ring.c | 14 +++--- 1 file changed, 11 insertions(