]> 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)
committerKalle Valo <kvalo@kernel.org>
Fri, 29 Jul 2022 13:35:53 +0000 (16:35 +0300)
commit33917ac52f6a24a2c2846fc17740a152e77dc61e
treefc5e1f54c90cace403ac4587430727d4b8156ea8
parentbe02aea84d7c6e781557de03c81492c1f07b1541
wifi: rtw88: check the return value of alloc_workqueue()

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: 788e2993958c3 ("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
drivers/net/wireless/realtek/rtw88/main.c