numam-dpdk/drivers/dma
Kevin Laatz b29427649b dma/idxd: fix null dereference in PCI remove
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' on the stack and
passing its address to 'rte_dma_info_get'.

Fixes: 9449330a84 ("dma/idxd: create dmadev instances on PCI probe")
Cc: stable@dpdk.org

Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2022-07-05 21:37:25 +02:00
..
cnxk dma/cnxk: fix installing internal headers 2022-01-27 18:11:11 +01:00
dpaa dma/dpaa: support statistics 2021-11-10 13:48:38 +01:00
dpaa2 remove unnecessary null checks 2022-06-24 14:51:09 +02:00
hisilicon dma/hisilicon: fix includes in header file 2022-06-15 16:33:42 +02:00
idxd dma/idxd: fix null dereference in PCI remove 2022-07-05 21:37:25 +02:00
ioat dma/ioat: add burst capacity 2021-10-22 22:40:59 +02:00
skeleton dma/skeleton: support multiple instances 2022-06-15 16:17:52 +02:00
meson.build dma/dpaa2: introduce driver skeleton 2022-06-01 08:58:27 +02:00