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: 33c73aae32e4 ("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
..
2021-11-04 19:43:14 +01:00
2021-08-17 08:37:52 +02:00
2021-10-22 23:32:00 +02:00
2021-11-05 15:35:57 +01:00
2021-11-04 12:38:03 +01:00
2021-10-08 14:58:11 +02:00
2021-10-24 13:37:43 +02:00
2021-11-04 19:46:27 +01:00
2021-09-30 17:38:13 +02:00
2021-08-17 08:37:52 +02:00
2021-10-25 19:08:16 +02:00
2021-08-17 08:37:52 +02:00
2021-10-13 22:14:59 +02:00
2021-10-31 23:25:02 +01:00
2021-10-25 19:13:12 +02:00
2021-08-17 08:37:52 +02:00