numam-dpdk/drivers
Ferruh Yigit fbedd8ca9e net/pcap: fix crash on exit for infinite Rx
If the infinite Rx argument ('infinite_rx') is provided a ring is
allocated and filled in the '.rx_queue_setup' dev_ops.
Later this ring freed in the '.dev_close' dev_ops.

If the 'infinite_rx' provided and '.dev_close' called before
'.rx_queue_setup', the ring will be NULL and trying to empty/free it
will cause a crash.

This is fixed by adding ring NULL check before trying to empty/free it.

Bugzilla ID: 548
Fixes: a3f5252e5c ("net/pcap: enable infinitely Rx a pcap file")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
2020-10-16 19:47:58 +02:00
..
baseband baseband/turbo_sw: detect dependencies automatically 2020-10-14 21:32:11 +02:00
bus bus/pci: clear undefined bits in Windows segment parsing 2020-10-16 14:41:32 +02:00
common net/octeontx2: fix jumbo frame crash 2020-10-15 22:54:21 +02:00
compress mbuf: remove deprecated function and macro aliases 2020-09-19 00:25:37 +02:00
crypto event/octeontx2: add crypto adapter datapath 2020-10-15 22:27:49 +02:00
event eventdev: express DLB/DLB2 PMD constraints 2020-10-15 23:16:07 +02:00
mempool net/octeontx2: fix jumbo frame crash 2020-10-15 22:54:21 +02:00
net net/pcap: fix crash on exit for infinite Rx 2020-10-16 19:47:58 +02:00
raw raw/dpaa2_qdma: fix reset 2020-10-11 22:02:55 +02:00
regex regex/octeontx2: introduce REE driver 2020-10-14 10:41:21 +02:00
vdpa vdpa/ifc: fix build with recent kernels 2020-10-02 18:38:33 +02:00
meson.build common/mlx5: introduce layer for multiple class drivers 2020-07-28 19:01:11 +02:00