> -----Original Message-----
> From: Qiming Chen <[email protected]>
> Sent: Wednesday, September 1, 2021 15:12
> To: [email protected]
> Cc: Wang, Haiyue <[email protected]>; Qiming Chen 
> <[email protected]>; [email protected]
> Subject: [PATCH v3] net/ixgbe: fix mac resourece 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: [email protected]
> 
> Signed-off-by: Qiming Chen <[email protected]>
> ---
> v2:
>   Clear coding style warning.
> v3:
>   Modify fixes commit.
> ---
>  drivers/net/ixgbe/ixgbe_ethdev.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 

Acked-by: Haiyue Wang <[email protected]>

> 
> --
> 2.30.1.windows.1

Reply via email to