Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath10k: Fix memory leak in qmi

Currently the memory allocated for qmi handle is
not being freed during de-init which leads to memory leak.

Free the allocated qmi memory in qmi deinit
to avoid memory leak.

Tested HW: WCN3990
Tested FW: WLAN.HL.3.1-01040-QCAHLSWMTPLZ-1

Fixes: fda6fee0001e ("ath10k: add QMI message handshake for wcn3990 client")
Signed-off-by: Dundi Raviteja <dundi@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Dundi Raviteja and committed by
Kalle Valo
c709df58 6b4021de

+1
+1
drivers/net/wireless/ath/ath10k/qmi.c
··· 1048 1048 qmi_handle_release(&qmi->qmi_hdl); 1049 1049 cancel_work_sync(&qmi->event_work); 1050 1050 destroy_workqueue(qmi->event_wq); 1051 + kfree(qmi); 1051 1052 ar_snoc->qmi = NULL; 1052 1053 1053 1054 return 0;