Skip to content

Commit 2bf0ccc

Browse files
Felix Fietkaujmberg-intel
authored andcommitted
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>
1 parent 0241fa1 commit 2bf0ccc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/wireless/util.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ void ieee80211_amsdu_to_8023s(struct sk_buff *skb, struct sk_buff_head *list,
676676
u8 *payload;
677677
int offset = 0, remaining, err;
678678
struct ethhdr eth;
679-
bool reuse_skb = true;
679+
bool reuse_skb = false;
680680
bool last = false;
681681

682682
if (has_80211_header) {

0 commit comments

Comments
 (0)