Thread (7 messages) 7 messages, 3 authors, 2021-09-06

Re: [dpdk-dev] [PATCH v3] net/ixgbe: fix mac resourece leak

From: Wang, Haiyue <hidden>
Date: 2021-09-06 01:25:15

-----Original Message-----
From: Qiming Chen <redacted>
Sent: Wednesday, September 1, 2021 15:12
To: dev@dpdk.org
Cc: Wang, Haiyue <redacted>; Qiming Chen <redacted>; stable@dpdk.org
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: stable@dpdk.org

Signed-off-by: Qiming Chen <redacted>
---
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 <redacted>
--
2.30.1.windows.1
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help