commit | fe46ff0c50b7df57371d6b0f218f6a87c1f3ad1e | [log] [tgz] |
---|---|---|
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | Mon Aug 24 13:44:42 2020 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Sep 12 11:47:33 2020 +0200 |
tree | b9012f2daac6c6044c83fc0e2347772fe9c981e5 | |
parent | f08569eb18b5c402ff0e03b92e5ed6d5e64f7622 [diff] |
net: hns: Fix memleak in hns_nic_dev_probe [ Upstream commit 100e3345c6e719d2291e1efd5de311cc24bb9c0b ] hns_nic_dev_probe allocates ndev, but not free it on two error handling paths, which may lead to memleak. Fixes: 63434888aaf1b ("net: hns: net: hns: enet adds support of acpi") Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>