Re: [PATCH] net: hns: Fix memleak in hns_nic_dev_probe

2020-08-24 Thread David Miller
From: Dinghao Liu Date: Mon, 24 Aug 2020 13:44:42 +0800 > 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 Applied and queued up fo

[PATCH] net: hns: Fix memleak in hns_nic_dev_probe

2020-08-23 Thread Dinghao Liu
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 --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 9 ++--- 1 file changed, 6 insertion