summaryrefslogtreecommitdiff
path: root/net/wireless/util.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-02-08 14:25:26 +0100
committerJohannes Berg <johannes.berg@intel.com>2016-02-24 09:04:37 +0100
commit2bf0ccc7095e6cf665bbdb7c32c352d24f1ae033 (patch)
treea8581691203bda7d13255122fb2f6930e443e086 /net/wireless/util.c
parent0241fa19ef4021c3db6f70b8f08d69f9e21cc043 (diff)
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 <nbd@openwrt.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/util.c')
-rw-r--r--net/wireless/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c
index 6e4eb3555177..9880c894c58d 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -676,7 +676,7 @@ void ieee80211_amsdu_to_8023s(struct sk_buff *skb, struct sk_buff_head *list,
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) {