]> Pileus Git - ~andy/linux/blobdiff - net/ipv6/reassembly.c
net: Add skb_unclone() helper function.
[~andy/linux] / net / ipv6 / reassembly.c
index bab2c270f29207c37ed7b107b6d25c6e12a6053d..e354743ed4267563c6959700c3ea99f70172b06d 100644 (file)
@@ -404,7 +404,7 @@ static int ip6_frag_reasm(struct frag_queue *fq, struct sk_buff *prev,
                goto out_oversize;
 
        /* Head of list must not be cloned. */
-       if (skb_cloned(head) && pskb_expand_head(head, 0, 0, GFP_ATOMIC))
+       if (skb_unclone(head, GFP_ATOMIC))
                goto out_oom;
 
        /* If the first fragment is fragmented itself, we split