drivers/net: fix double free on init failure
authorDavid Marchand <david.marchand@redhat.com>
Mon, 17 Jun 2019 15:05:24 +0000 (17:05 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Jun 2019 18:31:49 +0000 (20:31 +0200)
commite7f2fa88a71eb667788a124abbdc6d1ca1e0671e
tree6e214b4df0522144c186aa2ae0c5440d989dcdd5
parenteaa45270aa6646aefc223d0734e14ccb8838c2ef
drivers/net: fix double free on init failure

If we don't clear mac_addrs, ethdev will double free it on cleanup.

Fixes: e16adf08e54d ("ethdev: free all common data when releasing port")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/ark/ark_ethdev.c
drivers/net/axgbe/axgbe_ethdev.c
drivers/net/i40e/i40e_ethdev.c
drivers/net/ice/ice_ethdev.c
drivers/net/thunderx/nicvf_ethdev.c