Skip to content
Snippets Groups Projects
Commit 3fd17a47 authored by Yuan Can's avatar Yuan Can Committed by Greg Kroah-Hartman
Browse files

wifi: wfx: Fix error handling in wfx_core_init()


[ Upstream commit 3b88a987 ]

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: a7a91ca5 ("staging: wfx: add infrastructure for new driver")
Signed-off-by: default avatarYuan Can <yuancan@huawei.com>
Reviewed-by: default avatarJérôme Pouiller <jerome.pouiller@silabs.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20241022090453.84679-1-yuancan@huawei.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 67d32d63
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment