]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: rtl8723bs: fix missing status update on sdio_alloc_irq() failure
authorLiang Jie <liangjie@lixiang.com>
Mon, 8 Dec 2025 09:27:28 +0000 (17:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Dec 2025 13:02:14 +0000 (14:02 +0100)
commit618b4aec12faabc7579a6b0df046842d798a4c7c
treef98e4c98ff844e5b4ac0ce00dcb5f267911a14c3
parentec342420979ebf28b461a43c3d6ca4dc78a7882b
staging: rtl8723bs: fix missing status update on sdio_alloc_irq() failure

The return value of sdio_alloc_irq() was not stored in status.
If sdio_alloc_irq() fails after rtw_drv_register_netdev() succeeds,
status remains _SUCCESS and the error path skips resource cleanup,
while rtw_drv_init() still returns success.

Store the return value of sdio_alloc_irq() in status and reuse the
existing error handling which relies on status.

Reviewed-by: fanggeng <fanggeng@lixiang.com>
Signed-off-by: Liang Jie <liangjie@lixiang.com>
Link: https://patch.msgid.link/20251208092730.262499-1-buaajxlj@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/sdio_intf.c