aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/util.c')
-rw-r--r--net/wireless/util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c
index eef82f79554d..39dbf4ad7ca1 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -513,10 +513,9 @@ int ieee80211_data_from_8023(struct sk_buff *skb, const u8 *addr,
513 if (head_need) 513 if (head_need)
514 skb_orphan(skb); 514 skb_orphan(skb);
515 515
516 if (pskb_expand_head(skb, head_need, 0, GFP_ATOMIC)) { 516 if (pskb_expand_head(skb, head_need, 0, GFP_ATOMIC))
517 pr_err("failed to reallocate Tx buffer\n");
518 return -ENOMEM; 517 return -ENOMEM;
519 } 518
520 skb->truesize += head_need; 519 skb->truesize += head_need;
521 } 520 }
522 521