summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorfrançois romieu <romieu@fr.zoreil.com>2014-07-15 23:55:35 +0200
committerDavid S. Miller <davem@davemloft.net>2014-07-16 22:42:32 -0700
commita40e0a664bce465a3b8ad1d792153cef8ded9f7d (patch)
tree2f504fddf71420374932c37b13cec11c83475b8a /net/core
parentee40d4bbc031e5286bbcf539315b65e21b63c421 (diff)
downloadblackbird-op-linux-a40e0a664bce465a3b8ad1d792153cef8ded9f7d.tar.gz
blackbird-op-linux-a40e0a664bce465a3b8ad1d792153cef8ded9f7d.zip
net: remove open-coded skb_cow_head.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 138ab897de7d..239722af098d 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -2421,8 +2421,8 @@ struct sk_buff *__skb_gso_segment(struct sk_buff *skb,
skb_warn_bad_offload(skb);
- if (skb_header_cloned(skb) &&
- (err = pskb_expand_head(skb, 0, 0, GFP_ATOMIC)))
+ err = skb_cow_head(skb, 0);
+ if (err < 0)
return ERR_PTR(err);
}
OpenPOWER on IntegriCloud