numam-dpdk/drivers
Yunjian Wang f2aebfc4e9 net/tap: fix device freeing
The error path was calling rte_eth_dev_release_port() function,
which frees eth_dev->data->dev_private, and then tries to free
pmd->intr_handle, which causes the use after free issue.

The free can be moved to before the release function is called.

Fixes: d61138d4f0 ("drivers: remove direct access to interrupt handle")
Cc: stable@dpdk.org

Signed-off-by: Xiangjun Meng <mengxiangjun4@huawei.com>
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
2022-06-08 14:39:13 +02:00
..
baseband baseband/fpga_5gnr_fec: remove filler from HARQ 2022-06-01 16:26:36 +02:00
bus bus/fslmc: fix VFIO setup 2022-06-07 20:49:20 +02:00
common common/cnxk: allow building for generic arm64 2022-06-07 20:49:20 +02:00
compress compress/octeontx: support OCTEON TX2 SoC family 2022-04-29 11:36:46 +02:00
crypto replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
dma dma/idxd: fix error code for PCI device commands 2022-06-08 10:54:02 +02:00
event common/cnxk: allow building for generic arm64 2022-06-07 20:49:20 +02:00
gpu gpu/cuda: unmap GPU memory while freeing 2022-05-24 23:09:49 +02:00
mempool mempool/cnxk: avoid batch op free for empty pools 2022-06-08 11:11:32 +02:00
net net/tap: fix device freeing 2022-06-08 14:39:13 +02:00
raw raw/cnxk_gpio: allow controlling existing GPIO 2022-06-08 10:56:54 +02:00
regex replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
vdpa vdpa/ifc/base: access block device registers 2022-06-01 11:50:10 +02:00
meson.build build: add definitions for use as Meson subproject 2022-06-07 20:49:20 +02:00