numam-dpdk/drivers
Qiming Chen da0280b3a3 net/pcap: fix resource leakage on port probe
When the port is probed, if the eth_from_pcaps function fails, the
previously opened pcap resources are not released, causing resource
leakage.

The patch solves the problem of resource leakage caused by abnormal
branch exit during the port probe process.

Fixes: 4c173302c3 ("pcap: add new driver")
Cc: stable@dpdk.org

Signed-off-by: Qiming Chen <chenqiming_huawei@163.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
2021-09-09 15:01:47 +02:00
..
baseband version: 21.11-rc0 2021-08-17 08:37:52 +02:00
bus net: add macro to extract MAC address bytes 2021-09-07 19:08:05 +02:00
common net: add macro to extract MAC address bytes 2021-09-07 19:08:05 +02:00
compress compress/mlx5: fix leak on QP setup failure 2021-09-06 21:46:34 +02:00
crypto crypto/dpaa_sec: support PDCP short MAC-I 2021-09-08 17:20:30 +02:00
event cryptodev: expose driver interface as internal 2021-09-08 09:35:12 +02:00
mempool version: 21.11-rc0 2021-08-17 08:37:52 +02:00
net net/pcap: fix resource leakage on port probe 2021-09-09 15:01:47 +02:00
raw drivers: remove warning with Meson 0.59 2021-08-27 15:51:34 +02:00
regex version: 21.11-rc0 2021-08-17 08:37:52 +02:00
vdpa version: 21.11-rc0 2021-08-17 08:37:52 +02:00
meson.build drivers: remove warning with Meson 0.59 2021-08-27 15:51:34 +02:00