Skip to contentSkip to conversation

ath10k: fix potential issue of peer stats allocation

PATCH In review Zhi Chen 2 participants 3 messages Oct 31, 2019 – Nov 8, 2019 Qualcomm Atheros ATH10K wireless driver

lore
Share & tools
lore

Zhi Chen

author
#0 lore raw

PATCH 1/1 ath10k: fix potential issue of peer stats allocation

STA number was not restored if OOM happened.

Tested: QCA9984 with firmware ver 10.4-3.9.0.1-00018

---
 drivers/net/wireless/ath/ath10k/mac.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/ath10k/mac.c +1 -0
index b73c23d..61efc00 100644
@@ -6419,6 +6419,7 @@ static int ath10k_sta_state(struct ieee80211_hw *hw,
 			arsta->tx_stats = kzalloc(sizeof(*arsta->tx_stats),
 						  GFP_KERNEL);
 			if (!arsta->tx_stats) {
+				ath10k_mac_dec_num_stations(arvif, sta);
 				ret = -ENOMEM;
 				goto exit;
 			}
Signature · 1 line
2.7.4
#1 lore raw
Quoted 5 lines · Zhi Chen

STA number was not restored if OOM happened.

Tested: QCA9984 with firmware ver 10.4-3.9.0.1-00018

Patch applied to ath-next branch of ath.git, thanks.

402838a05def ath10k: fix potential issue of peer stats allocation

Signature · 9 lines
https://patchwork.kernel.org/patch/11220555/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
#2 lore raw
In reply to Zhi Chen
Quoted 5 lines · Zhi Chen

STA number was not restored if OOM happened.

Tested: QCA9984 with firmware ver 10.4-3.9.0.1-00018

Patch applied to ath-next branch of ath.git, thanks.

402838a05def ath10k: fix potential issue of peer stats allocation

Signature · 3 lines
https://patchwork.kernel.org/patch/11220555/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches