WSL2-Linux-Kernel/drivers/staging/wfx
Xiaoke Wang 86efcb524a staging: wfx: fix an error handling in wfx_init_common()
[ Upstream commit 60f1d3c92d ]

One error handler of wfx_init_common() return without calling
ieee80211_free_hw(hw), which may result in memory leak. And I add
one err label to unify the error handler, which is useful for the
subsequent changes.

Suggested-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Signed-off-by: Xiaoke Wang <xkernel.wang@foxmail.com>
Link: https://lore.kernel.org/r/tencent_24A24A3EFF61206ECCC4B94B1C5C1454E108@qq.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-13 20:59:11 +02:00
..
Documentation/devicetree/bindings/net/wireless
Kconfig
Makefile
TODO
bh.c
bh.h
bus.h
bus_sdio.c
bus_spi.c
data_rx.c
data_rx.h
data_tx.c
data_tx.h
debug.c
debug.h
fwio.c
fwio.h
hif_api_cmd.h
hif_api_general.h
hif_api_mib.h
hif_rx.c
hif_rx.h
hif_tx.c
hif_tx.h
hif_tx_mib.c
hif_tx_mib.h
hwio.c
hwio.h
key.c
key.h
main.c
main.h
queue.c
queue.h
scan.c
scan.h
sta.c
sta.h
traces.h
wfx.h