332-cfg80211-fix-faulty-variable-initialization-in-ieee8.patch 593 B

12345678910111213141516171819202122
  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. reuse_skb is set to true if the code decides to use the last segment.
  6. Fixes a memory leak
  7. Signed-off-by: Felix Fietkau <nbd@openwrt.org>
  8. ---
  9. --- a/net/wireless/util.c
  10. +++ b/net/wireless/util.c
  11. @@ -676,7 +676,7 @@ void ieee80211_amsdu_to_8023s(struct sk_
  12. u8 *payload;
  13. int offset = 0, remaining, err;
  14. struct ethhdr eth;
  15. - bool reuse_skb = true;
  16. + bool reuse_skb = false;
  17. bool last = false;
  18. if (has_80211_header) {