net/bnx2x: fix invalid free on unplug
authorDavid Marchand <david.marchand@redhat.com>
Mon, 17 Jun 2019 15:05:23 +0000 (17:05 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Jun 2019 18:31:49 +0000 (20:31 +0200)
commiteaa45270aa6646aefc223d0734e14ccb8838c2ef
tree31fc902bdf3aaabb1e71f4e70dc1873bc6f92ae3
parent281183d8519b84ad6c0322e40e230e718c4d26b6
net/bnx2x: fix invalid free on unplug

mac_addrs points to a field in dev_private.
We can't let ethdev free it.

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/bnx2x/bnx2x_ethdev.c