]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: rtw88: check the return value of alloc_workqueue()
authorWilliam Dean <williamsukatube@gmail.com>
Sat, 23 Jul 2022 06:37:56 +0000 (14:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:36 +0000 (14:23 +0200)
commit45ebbdeedc9f88a3aa85b2abd1d98a406e7a0e7e
tree2dc098e5debefcd5e5568c018ba3ba10c83ea7e7
parent51b21400aa5d599dcaaf9358b007c605c3c846c1
wifi: rtw88: check the return value of alloc_workqueue()

[ Upstream commit 8c03b230db075572dfce1899f8f9b3a75f5d9a33 ]

The function alloc_workqueue() in rtw_core_init() can fail, but
there is no check of its return value. To fix this bug, its return value
should be checked with new error handling code.

Fixes: 15678325112d6 ("rtw88: replace tx tasklet with work queue")
Reported-by: Hacash Robot <hacashRobot@santino.com>
Signed-off-by: William Dean <williamsukatube@gmail.com>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220723063756.2956189-1-williamsukatube@163.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/realtek/rtw88/main.c