1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/microchip/wilc1000
Huang Guobin 55bd149978 net: wilc1000: clean up resource in error path of init mon interface
The wilc_wfi_init_mon_int() forgets to clean up resource when
register_netdevice() failed. Add the missed call to fix it.
And the return value of netdev_priv can't be NULL, so remove
the unnecessary error handling.

Fixes: 588713006e ("staging: wilc1000: avoid the use of 'wilc_wfi_mon' static variable")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Huang Guobin <huangguobin4@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200917123019.206382-1-huangguobin4@huawei.com
2020-09-21 16:02:13 +03:00
..
cfg80211.c wilc1000: fix compiler warning for 'wowlan_support' unused variable 2020-07-14 20:52:24 +03:00
cfg80211.h wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00
fw.h wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00
hif.c wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00
hif.h wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00
Kconfig wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00
Makefile wilc1000: use API version number info along with firmware filename 2020-07-14 20:52:27 +03:00
mon.c net: wilc1000: clean up resource in error path of init mon interface 2020-09-21 16:02:13 +03:00
netdev.c wilc1000: let wilc_mac_xmit() return NETDEV_TX_OK 2020-07-14 20:53:29 +03:00
netdev.h wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00
sdio.c wilc1000: Fix memleak in wilc_sdio_probe 2020-08-27 13:01:31 +03:00
spi.c wilc1000: Fix memleak in wilc_bus_probe 2020-08-27 13:02:48 +03:00
wlan.c wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00
wlan.h wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00
wlan_cfg.c wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00
wlan_cfg.h wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00
wlan_if.h wilc1000: move wilc driver out of staging 2020-06-26 08:46:46 +03:00