drivers/net: fix crash in secondary process
authorFerruh Yigit <ferruh.yigit@intel.com>
Fri, 20 Jul 2018 14:54:23 +0000 (15:54 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Jul 2018 13:00:34 +0000 (15:00 +0200)
commitd1c3ab220a367085451f595d94e481320e091a77
tree92d8e0ce0ef3d3d8035e4c265adc709b18e2ae55
parent0989161b2636a9c9fc526baebaa7fb473e36a3cb
drivers/net: fix crash in secondary process

Calling rte_eth_dev_info_get() on secondary process cause a crash
because eth_dev->device is not set properly.

Fixes: ee27edbe0c10 ("drivers/net: share vdev data to secondary process")
Cc: stable@dpdk.org
Reported-by: Vipin Varghese <vipin.varghese@intel.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/af_packet/rte_eth_af_packet.c
drivers/net/bonding/rte_eth_bond_pmd.c
drivers/net/dpaa/dpaa_ethdev.c
drivers/net/failsafe/failsafe.c
drivers/net/kni/rte_eth_kni.c
drivers/net/null/rte_eth_null.c
drivers/net/octeontx/octeontx_ethdev.c
drivers/net/pcap/rte_eth_pcap.c
drivers/net/tap/rte_eth_tap.c
drivers/net/vhost/rte_eth_vhost.c