UPSTREAM: 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")

BUG=b:137525452
TEST=None

(Cherry picked from commit c709df58832c5f575f0255bea4b09ad477fc62ea
https://github.com/torvalds/linux.git)

Change-Id: I7a9ee1cb4beeefd86ea0a7014b27b31cfe7f3037
Signed-off-by: Dundi Raviteja <dundi@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Vamsi Singamsetty <vamssi@codeaurora.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1720378
Reviewed-by: Julan Hsu <julanhsu@google.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Julan Hsu <julanhsu@google.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
(cherry picked from commit 6e2725a225df7b218e684b39b362246ce2848a1c)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1764666
1 file changed