]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ath11k: Fix memory leak in ath11k_qmi_driver_event_work
authorBaochen Qiang <bqiang@codeaurora.org>
Tue, 28 Sep 2021 11:00:44 +0000 (14:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Nov 2021 10:04:00 +0000 (11:04 +0100)
commitb35a9d47203bb58b0f9021dbc202c748174ae653
tree5f4de19aeeb122c8cfc9c08b63f5f9828b1116cc
parent9b404c64784d01531f1c7cb699ae83ddc0516f32
ath11k: Fix memory leak in ath11k_qmi_driver_event_work

[ Upstream commit 72de799aa9e3e064b35238ef053d2f0a49db055a ]

The buffer pointed to by event is not freed in case
ATH11K_FLAG_UNREGISTERING bit is set, resulting in
memory leak, so fix it.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01720.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1

Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
Signed-off-by: Baochen Qiang <bqiang@codeaurora.org>
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210913180246.193388-4-jouni@codeaurora.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath11k/qmi.c