linux/drivers/net/ethernet/smsc
Wang Hai bca9749b1a net: smc91x: Fix possible memory leak in smc_drv_probe()
If try_toggle_control_gpio() failed in smc_drv_probe(), free_netdev(ndev)
should be called to free the ndev created earlier. Otherwise, a memleak
will occur.

Fixes: 7d2911c438 ("net: smc91x: Fix gpios for device tree based booting")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-07-17 12:44:42 -07:00
..
epic100.c epic100: allow nesting of ethtool_ops begin() and complete() 2020-01-06 13:54:55 -08:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
smc91c92_cs.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
smc91x.c net: smc91x: Fix possible memory leak in smc_drv_probe() 2020-07-17 12:44:42 -07:00
smc91x.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
smc911x.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
smc911x.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
smc9194.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
smc9194.h
smsc911x.c net: smsc911x: Fix runtime PM imbalance on error 2020-05-23 16:52:17 -07:00
smsc911x.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
smsc9420.c net: convert suitable drivers to use phy_do_ioctl_running 2020-01-23 10:49:30 +01:00
smsc9420.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00