net/ixgbe: fix MAC resource leak
authorQiming Chen <chenqiming_huawei@163.com>
Wed, 1 Sep 2021 07:12:07 +0000 (15:12 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Mon, 6 Sep 2021 01:44:58 +0000 (03:44 +0200)
commitcc8aaa258f31cf28776141e2e2f9c370bbb9ae55
treea123d8a8d4e5e12462590438140205fcb8b7115a
parent3a732dce93af3355854dbd0fbfbe26d8c8ec8982
net/ixgbe: fix MAC resource leak

In the eth_ixgbevf_dev_init and eth_ixgbe_dev_init functions, memory is
allocated for the MAC address, and the address is stored in the
eth_dev->data->mac_addrs member variable. If the subsequent function is
abnormal, you need to use the rte_free function to release the MAC
address memory.

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Qiming Chen <chenqiming_huawei@163.com>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c