UPSTREAM: net: remove open-coded skb_cow_head.

(cherry-picked from commit a40e0a664bce465a3b8ad1d792153cef8ded9f7d)

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Bug: 63963029
Change-Id: I7dd39f3a6dd980ce66827a3bb545fa08b964ed73
This commit is contained in:
françois romieu 2014-07-15 23:55:35 +02:00 committed by syphyr
parent 6546d5a7f2
commit e7b1a70fd8
1 changed files with 2 additions and 2 deletions

View File

@ -2375,8 +2375,8 @@ struct sk_buff *__skb_gso_segment(struct sk_buff *skb,
int err;
/* We're going to init ->check field in TCP or UDP header */
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);
}