]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: wfx: Fix error handling in wfx_core_init()
authorYuan Can <yuancan@huawei.com>
Tue, 22 Oct 2024 09:04:53 +0000 (17:04 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 31 Oct 2024 14:18:42 +0000 (16:18 +0200)
commit3b88a9876779b55478a4dde867e73f7a100ffa23
treeef135707083d1709e033bf3696fdc45f6a3634a9
parent3c1f19ab3d59d4b01cbb70fc5fbaa8c5805f108b
wifi: wfx: Fix error handling in wfx_core_init()

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: a7a91ca5a23d ("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
drivers/net/wireless/silabs/wfx/main.c