summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/litex/litex_liteeth.c
diff options
context:
space:
mode:
authorP Praneesh <quic_ppranees@quicinc.com>2023-06-06 12:11:28 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-07-27 09:50:35 +0300
commit86f9330a49d1464849482298dd34d361859183eb (patch)
tree1f2a6206d42e200531f74675cf0a41ed7e70c888 /drivers/net/ethernet/litex/litex_liteeth.c
parent766e606536b945e19d761a7b4f10c05fa4ec62c5 (diff)
downloadlinux-86f9330a49d1464849482298dd34d361859183eb.tar.xz
wifi: ath11k: fix memory leak in WMI firmware stats
[ Upstream commit 6aafa1c2d3e3fea2ebe84c018003f2a91722e607 ] Memory allocated for firmware pdev, vdev and beacon statistics are not released during rmmod. Fix it by calling ath11k_fw_stats_free() function before hardware unregister. While at it, avoid calling ath11k_fw_stats_free() while processing the firmware stats received in the WMI event because the local list is getting spliced and reinitialised and hence there are no elements in the list after splicing. Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1 Signed-off-by: P Praneesh <quic_ppranees@quicinc.com> Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://lore.kernel.org/r/20230606091128.14202-1-quic_adisi@quicinc.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/litex/litex_liteeth.c')
0 files changed, 0 insertions, 0 deletions