* [PATCH] ath10k: fix potential issue of peer stats allocation
@ 2019-10-31 1:42 ` Zhi Chen
0 siblings, 0 replies; 4+ messages in thread
From: Zhi Chen @ 2019-10-31 1:42 UTC (permalink / raw)
To: ath10k; +Cc: Zhi Chen, linux-wireless
STA number was not restored if OOM happened.
Tested: QCA9984 with firmware ver 10.4-3.9.0.1-00018
Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
---
drivers/net/wireless/ath/ath10k/mac.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index b73c23d..61efc00 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -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;
}
--
2.7.4
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] ath10k: fix potential issue of peer stats allocation
@ 2019-10-31 1:42 ` Zhi Chen
0 siblings, 0 replies; 4+ messages in thread
From: Zhi Chen @ 2019-10-31 1:42 UTC (permalink / raw)
To: ath10k; +Cc: linux-wireless, Zhi Chen
STA number was not restored if OOM happened.
Tested: QCA9984 with firmware ver 10.4-3.9.0.1-00018
Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
---
drivers/net/wireless/ath/ath10k/mac.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index b73c23d..61efc00 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -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;
}
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ath10k: fix potential issue of peer stats allocation
2019-10-31 1:42 ` Zhi Chen
(?)
(?)
@ 2019-11-08 8:44 ` Kalle Valo
-1 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2019-11-08 8:44 UTC (permalink / raw)
To: Zhi Chen; +Cc: linux-wireless, ath10k
Zhi Chen <zhichen@codeaurora.org> wrote:
> STA number was not restored if OOM happened.
>
> Tested: QCA9984 with firmware ver 10.4-3.9.0.1-00018
> Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Patch applied to ath-next branch of ath.git, thanks.
402838a05def ath10k: fix potential issue of peer stats allocation
--
https://patchwork.kernel.org/patch/11220555/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ath10k: fix potential issue of peer stats allocation
2019-10-31 1:42 ` Zhi Chen
(?)
@ 2019-11-08 8:44 ` Kalle Valo
-1 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2019-11-08 8:44 UTC (permalink / raw)
To: Zhi Chen; +Cc: ath10k, linux-wireless, Zhi Chen
Zhi Chen <zhichen@codeaurora.org> wrote:
> STA number was not restored if OOM happened.
>
> Tested: QCA9984 with firmware ver 10.4-3.9.0.1-00018
> Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Patch applied to ath-next branch of ath.git, thanks.
402838a05def ath10k: fix potential issue of peer stats allocation
--
https://patchwork.kernel.org/patch/11220555/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-11-08 8:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-31 1:42 [PATCH] ath10k: fix potential issue of peer stats allocation Zhi Chen
2019-10-31 1:42 ` Zhi Chen
2019-11-08 8:44 ` Kalle Valo
2019-11-08 8:44 ` Kalle Valo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.