Re: wifi: rtw88: check the return value of alloc_workqueue()

From: Kalle Valo
Date: Fri Jul 29 2022 - 09:36:09 EST


williamsukatube@xxxxxxx wrote:

> From: William Dean <williamsukatube@xxxxxxxxx>
>
> 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: fe101716c7c9d ("rtw88: replace tx tasklet with work queue")
> Reported-by: Hacash Robot <hacashRobot@xxxxxxxxxxx>
> Signed-off-by: William Dean <williamsukatube@xxxxxxxxx>
> Reviewed-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>

Patch applied to wireless-next.git, thanks.

42bbf810e155 wifi: rtw88: check the return value of alloc_workqueue()

--
https://patchwork.kernel.org/project/linux-wireless/patch/20220723063756.2956189-1-williamsukatube@xxxxxxx/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches