diff options
author | Jiasheng Jiang <jiasheng@iscas.ac.cn> | 2023-01-04 15:29:01 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2023-01-16 14:36:15 +0100 |
commit | ed9e6166eb0984b718facb7ca59296098cc3aa64 (patch) | |
tree | 7b85372d5ff683fa6403b3a767c4323907b67863 /drivers/net/wireless/realtek/rtw89/fw.c | |
parent | wifi: rtw89: fix potential leak in rtw89_append_probe_req_ie() (diff) | |
download | linux-ed9e6166eb0984b718facb7ca59296098cc3aa64.tar.xz linux-ed9e6166eb0984b718facb7ca59296098cc3aa64.zip |
wifi: rtw89: Add missing check for alloc_workqueue
Add check for the return value of alloc_workqueue since it may return
NULL pointer.
Moreover, add destroy_workqueue when rtw89_load_firmware fails.
Fixes: e3ec7017f6a2 ("rtw89: add Realtek 802.11ax driver")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230104142901.1611-1-jiasheng@iscas.ac.cn
Diffstat (limited to 'drivers/net/wireless/realtek/rtw89/fw.c')
0 files changed, 0 insertions, 0 deletions