linux-stable/drivers/staging
Yuan Can 46b8e788c4 wifi: wfx: Fix error handling in wfx_core_init()
[ Upstream commit 3b88a98767 ]

The wfx_core_init() returns without checking the retval from
sdio_register_driver().
If the sdio_register_driver() failed, the module failed to install,
leaving the wfx_spi_driver not unregistered.

Fixes: a7a91ca5a2 ("staging: wfx: add infrastructure for new driver")
Signed-off-by: Yuan Can <yuancan@huawei.com>
Reviewed-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20241022090453.84679-1-yuancan@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-14 19:50:56 +01:00
..
android
axis-fifo
board
clocking-wizard
emxx_udc
fbtft
fieldbus
fwserial
gdm724x
greybus
gs_fpgaboot
iio
ks7010
media media: atomisp: Add check for rgby_data memory allocation failure 2024-12-14 19:50:51 +01:00
most
mt7621-dma
mt7621-dts
mt7621-pci
netlogic
nvec
octeon
octeon-usb
olpc_dcon
pi433
qlge
r8188eu
ralink-gdma
rtl8192e
rtl8192u
rtl8712
rtl8723bs
rts5208
sm750fb
unisys
vc04_services
vme
vt6655
vt6656
wfx wifi: wfx: Fix error handling in wfx_core_init() 2024-12-14 19:50:56 +01:00
wlan-ng
Kconfig
Makefile