Re: [dpdk-dev] [PATCH] net/pcap: fix possible crash on exit for infinite Rx

2020-10-12 Thread Ferruh Yigit
On 10/9/2020 5:16 PM, Ferruh Yigit wrote: 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', th

[dpdk-dev] [PATCH] net/pcap: fix possible crash on exit for infinite Rx

2020-10-09 Thread Ferruh Yigit
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