linux/drivers/staging/wilc1000
Huang Guobin 0f5203a88c net: wilc1000: clean up resource in error path of init mon interface
[ Upstream commit 55bd149978 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-29 09:57:40 +01:00
..
Kconfig
Makefile
TODO
microchip,wilc1000,sdio.txt
microchip,wilc1000,spi.txt
wilc_hif.c staging: wilc1000: Increase the size of wid_list array 2020-06-24 17:50:23 +02:00
wilc_hif.h
wilc_mon.c net: wilc1000: clean up resource in error path of init mon interface 2020-10-29 09:57:40 +01:00
wilc_netdev.c
wilc_sdio.c
wilc_spi.c
wilc_wfi_cfgoperations.c
wilc_wfi_cfgoperations.h
wilc_wfi_netdevice.h
wilc_wlan.c staging: wilc1000: avoid double unlocking of 'wilc->hif_cs' mutex 2020-04-17 10:50:00 +02:00
wilc_wlan.h
wilc_wlan_cfg.c
wilc_wlan_cfg.h
wilc_wlan_if.h