]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ipv6/ah6.c
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf
[karo-tx-linux.git] / net / ipv6 / ah6.c
index 384233188ac1e38468b5edf71c105c21e6bf38bc..bb02e176cb70537ac7cdc01a03c0c641ab672741 100644 (file)
@@ -521,8 +521,7 @@ static int ah6_input(struct xfrm_state *x, struct sk_buff *skb)
 
        /* We are going to _remove_ AH header to keep sockets happy,
         * so... Later this can change. */
-       if (skb_cloned(skb) &&
-           pskb_expand_head(skb, 0, 0, GFP_ATOMIC))
+       if (skb_unclone(skb, GFP_ATOMIC))
                goto out;
 
        skb->ip_summed = CHECKSUM_NONE;