numam-dpdk/drivers
Igor Romanov 6b35f4d88b net/failsafe: fix crash on slave queue release
Releasing a queue that is already released by slave may cause a
segmentation fault. For example, after a successfull device
configuration a queue is set up. Afterwards the device is reconfigured
with an invalid argument, forcing slaves to release the queues
(e.g. rte_eth_dev.data.tx_queues). Finally the failsafe's queues
are released. The queue release functions also try to release slaves'
queues using ETH(sdev)->data->tx_queues which is NULL at the time.

Add checks for NULL slaves' Tx and Rx queues before releasing them.

Fixes: a46f8d584e ("net/failsafe: add fail-safe PMD")
Cc: stable@dpdk.org

Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
2018-09-28 01:41:02 +02:00
..
baseband baseband/null: add in meson build 2018-09-18 22:53:35 +02:00
bus drivers/bus: fill driver reference after NXP probing 2018-09-27 14:43:47 +02:00
common compress/qat: use compression specific driver name 2018-08-30 05:10:50 +02:00
compress compress/qat: use compression specific driver name 2018-08-30 05:10:50 +02:00
crypto drivers/crypto: remove double assignment of driver 2018-09-28 18:02:58 +02:00
event event/opdl: add in meson build 2018-09-18 22:53:35 +02:00
mempool bus/fslmc: fix undefined reference of memsegs 2018-08-27 14:14:27 +02:00
net net/failsafe: fix crash on slave queue release 2018-09-28 01:41:02 +02:00
raw raw/ifpga: use -Wno-error=format-security for meson 2018-09-17 12:17:24 +02:00
Makefile crypto/qat: move common qat files to common dir 2018-07-11 00:55:30 +02:00
meson.build baseband/null: add in meson build 2018-09-18 22:53:35 +02:00