numam-dpdk/lib/ethdev
Ferruh Yigit b7ade5d31a ethdev: fix crash on owner delete
'eth_dev->data' can be null before ethdev allocated. The API walks
through all eth devices, at least for some data can be null.

Adding 'eth_dev->data' null check before accessing it.

Fixes: 33c73aae32 ("ethdev: allow ownership operations on unused port")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Chenbo Xia <chenbo.xia@intel.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
2021-11-05 15:35:57 +01:00
..
ethdev_driver.h ethdev: add namespace 2021-10-22 18:15:38 +02:00
ethdev_pci.h drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
ethdev_private.c ethdev: warn once when using port not ready 2021-10-27 19:28:45 +02:00
ethdev_private.h ethdev: fix ID spelling in comments and log messages 2021-10-21 13:43:56 +02:00
ethdev_profile.c ethdev: fix Ethernet spelling 2021-10-21 13:43:56 +02:00
ethdev_profile.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ethdev_trace_points.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ethdev_vdev.h ethdev: fix Ethernet spelling 2021-10-21 13:43:56 +02:00
meson.build lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_class_eth.c ethdev: fix ID spelling in comments and log messages 2021-10-21 13:43:56 +02:00
rte_dev_info.h ethdev: fix EEPROM spelling 2021-10-21 13:43:56 +02:00
rte_eth_ctrl.h ethdev: fix Rx/Tx spelling 2021-10-21 13:43:56 +02:00
rte_ethdev_core.h ethdev: fix Rx/Tx spelling 2021-10-21 13:43:56 +02:00
rte_ethdev_trace_fp.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_ethdev_trace.h ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
rte_ethdev.c ethdev: fix crash on owner delete 2021-11-05 15:35:57 +01:00
rte_ethdev.h ethdev: promote device removal check function as stable 2021-11-04 11:11:28 +01:00
rte_flow_driver.h ethdev: introduce configurable flexible item 2021-10-20 18:58:54 +02:00
rte_flow.c ethdev: fix variable length flow elements support 2021-11-04 13:23:29 +01:00
rte_flow.h ethdev: add capability to keep flow rules on restart 2021-11-02 18:59:17 +01:00
rte_mtr_driver.h ethdev: avoid documentation in next lines 2021-10-21 13:43:56 +02:00
rte_mtr.c ethdev: add pre-defined meter policy API 2021-04-21 12:22:17 +02:00
rte_mtr.h ethdev: add pre-defined meter policy API 2021-04-21 12:22:17 +02:00
rte_tm_driver.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_tm.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_tm.h ethdev: fix Rx/Tx spelling 2021-10-21 13:43:56 +02:00
version.map ethdev: promote device removal check function as stable 2021-11-04 11:11:28 +01:00