summaryrefslogtreecommitdiff
path: root/drivers/net/phy/mdio-boardinfo.h
diff options
context:
space:
mode:
authorJianglei Nie <niejianglei2021@163.com>2022-09-14 09:42:38 +0800
committerDavid S. Miller <davem@davemloft.net>2022-09-21 12:50:57 +0100
commit65e5d27df61283e5390f04b09dc79cd832f95607 (patch)
treedd9a27049e66a3296a132ee432ba83bd39c150ad /drivers/net/phy/mdio-boardinfo.h
parent79a392a3b19a106e0268bfbe1b4cc31d85eeb552 (diff)
net: atlantic: fix potential memory leak in aq_ndev_close()
If aq_nic_stop() fails, aq_ndev_close() returns err without calling aq_nic_deinit() to release the relevant memory and resource, which will lead to a memory leak. We can fix it by deleting the if condition judgment and goto statement to call aq_nic_deinit() directly after aq_nic_stop() to fix the memory leak. Signed-off-by: Jianglei Nie <niejianglei2021@163.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/mdio-boardinfo.h')
0 files changed, 0 insertions, 0 deletions