net/pfe: fix double free of MAC address
authorYunjian Wang <wangyunjian@huawei.com>
Thu, 9 Apr 2020 01:59:00 +0000 (09:59 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:07 +0000 (13:57 +0200)
commit497eb88c14481c262bfb4af3a7d2050d62e35295
treebc64fbd86dbb53d4b128151b89c1a40517a54c4e
parentc3ea098ae3a99fcf654432154ebc5b7a33866d89
net/pfe: fix double free of MAC address

The 'mac_addrs' freeing has been moved to rte_eth_dev_release_port(),
so freeing 'mac_addrs' like this in pfe_eth_exit() is unnecessary and
will cause double free.

Fixes: 67fc3ff97c39 ("net/pfe: introduce basic functions")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/pfe/pfe_ethdev.c