wifi: iwl3945: Add missing check for create_singlethread_workqueue
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Wed, 8 Feb 2023 06:30:32 +0000 (14:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:03 +0000 (09:33 +0100)
commit34f611204ae589bd5c494b10b41fb13436bd3c3f
treefc3269616579a4ee07af985e193f99147e13bc09
parent05a94ebbaed8c2b9033cd59db2ea3fe20eea2ff1
wifi: iwl3945: Add missing check for create_singlethread_workqueue

[ Upstream commit 1fdeb8b9f29dfd64805bb49475ac7566a3cb06cb ]

Add the check for the return value of the create_singlethread_workqueue
in order to avoid NULL pointer dereference.

Fixes: b481de9ca074 ("[IWLWIFI]: add iwlwifi wireless drivers")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230208063032.42763-2-jiasheng@iscas.ac.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlegacy/3945-mac.c