Files
linux/drivers/net
Jianglei Nie 65e5d27df6 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>
2022-09-21 12:50:57 +01:00
..
2022-08-09 12:16:02 -07:00
2022-06-17 20:17:04 -07:00
2022-06-07 10:45:25 +02:00
2022-07-28 22:21:51 -07:00
2022-06-09 21:52:55 -07:00
2022-06-09 21:53:09 -07:00
2022-05-11 13:09:59 +01:00
2022-06-30 11:34:10 -07:00