Re: [PATCH v2] virtio_ring: Check null pointer

2022-01-06 Thread Michael S. Tsirkin
On Tue, Jan 04, 2022 at 11:12:51PM +0800, Jiasheng Jiang wrote: > As the alloc_indirect_packed() returns kmalloc_array() that could > allocation fail and return null pointer, it should be check in order to > prevent the dereference of null pointer. > > Fixes: 1ce9e6055fa0 ("virtio_ring: introduce

Re: [PATCH v2] virtio_ring: Check null pointer

2022-01-04 Thread Jason Wang
On Tue, Jan 4, 2022 at 11:13 PM Jiasheng Jiang wrote: > > As the alloc_indirect_packed() returns kmalloc_array() that could > allocation fail and return null pointer, it should be check in order to > prevent the dereference of null pointer. > > Fixes: 1ce9e6055fa0 ("virtio_ring: introduce packed r