linux-stable/drivers/staging/wilc1000
Ajay Singh 8c68d12f1a wilc1000: fix possible memory leak in cfg_scan_result()
[ Upstream commit 3c719fed0f ]

When the BSS reference holds a valid reference, it is not freed. The 'if'
condition is wrong. Instead of the 'if (bss)' check, the 'if (!bss)' check
is used.
The issue is solved by removing the unnecessary 'if' check because
cfg80211_put_bss() already performs the NULL validation.

Fixes: 6cd4fa5ab6 ("staging: wilc1000: make use of cfg80211_inform_bss_frame()")
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210916164902.74629-3-ajay.kathat@microchip.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-17 09:48:34 +01:00
..
Kconfig
Makefile
microchip,wilc1000,sdio.txt
microchip,wilc1000,spi.txt
TODO
wilc_hif.c
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 wilc1000: fix possible memory leak in cfg_scan_result() 2021-11-17 09:48:34 +01:00
wilc_wfi_cfgoperations.h
wilc_wfi_netdevice.h
wilc_wlan.c
wilc_wlan.h
wilc_wlan_cfg.c
wilc_wlan_cfg.h
wilc_wlan_if.h