mac80211: update brcmfmac including missing boardrev workaround
[openwrt.git] / package / kernel / mac80211 / patches / 332-cfg80211-fix-faulty-variable-initialization-in-ieee8.patch
1 From: Felix Fietkau <nbd@openwrt.org>
2 Date: Mon, 8 Feb 2016 14:24:36 +0100
3 Subject: [PATCH] cfg80211: fix faulty variable initialization in
4  ieee80211_amsdu_to_8023s
5
6 reuse_skb is set to true if the code decides to use the last segment.
7 Fixes a memory leak
8
9 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
10 ---
11
12 --- a/net/wireless/util.c
13 +++ b/net/wireless/util.c
14 @@ -676,7 +676,7 @@ void ieee80211_amsdu_to_8023s(struct sk_
15         u8 *payload;
16         int offset = 0, remaining, err;
17         struct ethhdr eth;
18 -       bool reuse_skb = true;
19 +       bool reuse_skb = false;
20         bool last = false;
21  
22         if (has_80211_header) {