ath11k: Fix possible memleak in ath11k_qmi_init_service
When qmi_add_lookup fail, we should destroy the workqueue
Fixes: d5c65159f2
("ath11k: driver for Qualcomm IEEE 802.11ax devices")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Yufen <wangyufen@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1595237804-66297-1-git-send-email-wangyufen@huawei.com
This commit is contained in:
parent
99f41b8e43
commit
28f1632118
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue