]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: ath12k_mac_station_add(): fix potential rx_stats leak
authorRameshkumar Sundaram <quic_ramess@quicinc.com>
Tue, 26 Nov 2024 17:11:34 +0000 (19:11 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 29 Nov 2024 11:17:45 +0000 (13:17 +0200)
commit85edf16384d12db938a09458d89662cdff87068e
tree97b8e2722ce3ee8c3f8a92fac6cdaa8c92928e24
parent5419ef950da4a76c54c91129f16c292fc65da56b
wifi: ath12k: ath12k_mac_station_add(): fix potential rx_stats leak

If peer creation fails ar->rx_stats needs to be freed in error handling.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3

Signed-off-by: Rameshkumar Sundaram <quic_ramess@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://patch.msgid.link/20241126171139.2350704-6-kvalo@kernel.org
drivers/net/wireless/ath/ath12k/mac.c