1
0
Fork 0
alistair23-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 staging: remove redundant 'default n' from Kconfig 2019-04-16 13:39:01 +02:00
Makefile staging: wilc1000: rename 'host_interface' source and header 2019-07-01 09:01:41 +02:00
TODO staging: wilc1000: remove TODO item for comments and code style 2018-08-05 16:15:32 +02:00
microchip,wilc1000,sdio.txt staging: dt-bindings: wilc1000: add optional rtc_clk property 2019-09-12 10:35:51 +01:00
microchip,wilc1000,spi.txt staging: dt-bindings: wilc1000: add optional rtc_clk property 2019-09-12 10:35:51 +01:00
wilc_hif.c staging: wilc1000: Increase the size of wid_list array 2020-06-24 17:50:23 +02:00
wilc_hif.h staging: wilc1000: remove unused function 2019-08-02 13:58:11 +02:00
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 staging: wilc1000: avoid twice IRQ handler execution for each single interrupt 2019-09-12 10:37:26 +01:00
wilc_sdio.c staging: wilc1000: look for rtc_clk clock 2019-09-12 10:35:51 +01:00
wilc_spi.c staging: wilc1000: added support to dynamically add/remove interfaces 2019-07-01 09:01:41 +02:00
wilc_wfi_cfgoperations.c staging: wilc1000: check if device is initialzied before changing vif 2019-12-31 16:44:28 +01:00
wilc_wfi_cfgoperations.h staging: wilc1000: added support to dynamically add/remove interfaces 2019-07-01 09:01:41 +02:00
wilc_wfi_netdevice.h staging: wilc1000: look for rtc_clk clock 2019-09-12 10:35:51 +01:00
wilc_wlan.c staging: wilc1000: avoid double unlocking of 'wilc->hif_cs' mutex 2020-04-17 10:50:00 +02:00
wilc_wlan.h staging: wilc1000: remove unused interrupt status handling code 2019-09-12 10:37:26 +01:00
wilc_wlan_cfg.c staging: wilc1000: use helper API to pack data for firmware 2019-08-08 18:59:18 +02:00
wilc_wlan_cfg.h staging: wilc1000: Replace function wilc_wlan_cfg_get_val() 2019-07-22 07:34:12 +02:00
wilc_wlan_if.h staging: wilc1000: merge drv_handle and operation_mode wids 2019-08-02 13:56:59 +02:00