From f39dfa0960b548ecccf522768dc983482515cb4a Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Sat, 16 Sep 2023 16:25:36 +0800 Subject: [PATCH] mac80211: ath11k: add workaround for memory leak issue Signed-off-by: Tianling Shen (cherry picked from commit 3f3094e87c295e52e9000381da1c3758f8d52b9e) --- .../984-ath11k-workaround-for-memory-leak.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 package/kernel/mac80211/patches/ath11k/984-ath11k-workaround-for-memory-leak.patch diff --git a/package/kernel/mac80211/patches/ath11k/984-ath11k-workaround-for-memory-leak.patch b/package/kernel/mac80211/patches/ath11k/984-ath11k-workaround-for-memory-leak.patch new file mode 100644 index 0000000000..09a55b0758 --- /dev/null +++ b/package/kernel/mac80211/patches/ath11k/984-ath11k-workaround-for-memory-leak.patch @@ -0,0 +1,13 @@ +--- a/drivers/net/wireless/ath/ath11k/dp_rx.c ++++ b/drivers/net/wireless/ath/ath11k/dp_rx.c +@@ -370,8 +370,8 @@ int ath11k_dp_rxbufs_replenish(struct at + num_remain = req_entries; + + while (num_remain > 0) { +- skb = dev_alloc_skb(DP_RX_BUFFER_SIZE + +- DP_RX_BUFFER_ALIGN_SIZE); ++ skb = alloc_skb(DP_RX_BUFFER_SIZE + ++ DP_RX_BUFFER_ALIGN_SIZE, GFP_ATOMIC); + if (!skb) + break; +