Skip to contentSkip to conversation

Patch "cfg80211: handle failed skb allocation" has been added to the 4.6-stable tree

PATCH [email protected] 1 participant 1 message Aug 8, 2016

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

cfg80211: handle failed skb allocation

to the 4.6-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
cfg80211-handle-failed-skb-allocation.patch
and it can be found in the queue-4.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 16a910a6722b7a8680409e634c7c0dac073c01e4 Mon Sep 17 00:00:00 2001

From: Gregory Greenman <[email protected]>
Date: Tue, 5 Jul 2016 15:23:10 +0300
Subject: cfg80211: handle failed skb allocation

From: Gregory Greenman <[email protected]>

commit 16a910a6722b7a8680409e634c7c0dac073c01e4 upstream.

Handle the case when dev_alloc_skb returns NULL.

Fixes 2b67f944f88c2 ("cfg80211: reuse existing page fragments in A-MSDU rx")
---
 net/wireless/util.c |    2 ++
 1 file changed, 2 insertions(+)
net/wireless/util.c +2 -0
@@ -721,6 +721,8 @@ __ieee80211_amsdu_copy(struct sk_buff *s
 	 * alignment since sizeof(struct ethhdr) is 14.
 	 */
 	frame = dev_alloc_skb(hlen + sizeof(struct ethhdr) + 2 + cur_len);
+	if (!frame)
+		return NULL;
 
 	skb_reserve(frame, hlen + sizeof(struct ethhdr) + 2);
 	skb_copy_bits(skb, offset, skb_put(frame, cur_len), cur_len);

Patches currently in stable-queue which might be from [email protected] are

queue-4.6/cfg80211-handle-failed-skb-allocation.patch