Re: [PATCH v2 3/3] dma/idxd: fix null pointer dereference during pci remove

2022-07-04 Thread Bruce Richardson
On Sun, Jul 03, 2022 at 01:22:43PM +0100, Kevin Laatz wrote: > The 'info' struct was being declared as a NULL pointer. If a NULL > pointer is passed to 'rte_dma_info_get', EINVAL is returned and the > struct is not populated. This subsequently causes a segfault when > dereferencing 'info'. > > Thi

[PATCH v2 3/3] dma/idxd: fix null pointer dereference during pci remove

2022-07-03 Thread Kevin Laatz
The 'info' struct was being declared as a NULL pointer. If a NULL pointer is passed to 'rte_dma_info_get', EINVAL is returned and the struct is not populated. This subsequently causes a segfault when dereferencing 'info'. This patch fixes the issue by simply declaring 'info' as a variable and pass