Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2bf0ccc7 authored by Felix Fietkau's avatar Felix Fietkau Committed by Johannes Berg
Browse files

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: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 0241fa19
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -676,7 +676,7 @@ void ieee80211_amsdu_to_8023s(struct sk_buff *skb, struct sk_buff_head *list,
	u8 *payload;
	u8 *payload;
	int offset = 0, remaining, err;
	int offset = 0, remaining, err;
	struct ethhdr eth;
	struct ethhdr eth;
	bool reuse_skb = true;
	bool reuse_skb = false;
	bool last = false;
	bool last = false;


	if (has_80211_header) {
	if (has_80211_header) {