Commit 28f16321 authored by Wang Yufen's avatar Wang Yufen Committed by Kalle Valo

ath11k: Fix possible memleak in ath11k_qmi_init_service

When qmi_add_lookup fail, we should destroy the workqueue

Fixes: d5c65159 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWang Yufen <wangyufen@huawei.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1595237804-66297-1-git-send-email-wangyufen@huawei.com
parent 99f41b8e
...@@ -2648,6 +2648,7 @@ int ath11k_qmi_init_service(struct ath11k_base *ab) ...@@ -2648,6 +2648,7 @@ int ath11k_qmi_init_service(struct ath11k_base *ab)
ab->qmi.service_ins_id); ab->qmi.service_ins_id);
if (ret < 0) { if (ret < 0) {
ath11k_warn(ab, "failed to add qmi lookup\n"); ath11k_warn(ab, "failed to add qmi lookup\n");
destroy_workqueue(ab->qmi.event_wq);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment