]> Pileus Git - ~andy/linux/blobdiff - net/ipv4/xfrm4_input.c
net: Add skb_unclone() helper function.
[~andy/linux] / net / ipv4 / xfrm4_input.c
index 06814b6216dc1bc71fedc9924b23d74b817a38d8..1f12c8b4586497931831515e06a8005140863ff5 100644 (file)
@@ -132,7 +132,7 @@ int xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb)
         * header and optional ESP marker bytes) and then modify the
         * protocol to ESP, and then call into the transform receiver.
         */
-       if (skb_cloned(skb) && pskb_expand_head(skb, 0, 0, GFP_ATOMIC))
+       if (skb_unclone(skb, GFP_ATOMIC))
                goto drop;
 
        /* Now we can update and verify the packet length... */