From 446d06edac31570d9c68ec2042a969aedd6c01c7 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 8 Feb 2016 13:38:03 +0000 Subject: [PATCH] mac80211: fix a memory leak in a-msdu rx Signed-off-by: Felix Fietkau SVN-Revision: 48672 --- ...lty-variable-initialization-in-ieee8.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 package/kernel/mac80211/patches/332-cfg80211-fix-faulty-variable-initialization-in-ieee8.patch diff --git a/package/kernel/mac80211/patches/332-cfg80211-fix-faulty-variable-initialization-in-ieee8.patch b/package/kernel/mac80211/patches/332-cfg80211-fix-faulty-variable-initialization-in-ieee8.patch new file mode 100644 index 0000000000..e414f23784 --- /dev/null +++ b/package/kernel/mac80211/patches/332-cfg80211-fix-faulty-variable-initialization-in-ieee8.patch @@ -0,0 +1,22 @@ +From: Felix Fietkau +Date: Mon, 8 Feb 2016 14:24:36 +0100 +Subject: [PATCH] cfg80211: fix faulty variable initialization in + ieee80211_amsdu_to_8023s + +reuse_skb is set to true if the code decides to use the last segment. +Fixes a memory leak + +Signed-off-by: Felix Fietkau +--- + +--- a/net/wireless/util.c ++++ b/net/wireless/util.c +@@ -676,7 +676,7 @@ void ieee80211_amsdu_to_8023s(struct sk_ + u8 *payload; + int offset = 0, remaining, err; + struct ethhdr eth; +- bool reuse_skb = true; ++ bool reuse_skb = false; + bool last = false; + + if (has_80211_header) { -- 2.30.2