]> Pileus Git - ~andy/linux/blobdiff - net/sched/act_pedit.c
net: Add skb_unclone() helper function.
[~andy/linux] / net / sched / act_pedit.c
index 0c3faddf3f2c75f1505f5c7c1862f24a4c769dfa..7ed78c9e505cf7e18bc5a0b066837d19d33d4b10 100644 (file)
@@ -131,8 +131,7 @@ static int tcf_pedit(struct sk_buff *skb, const struct tc_action *a,
        int i, munged = 0;
        unsigned int off;
 
-       if (skb_cloned(skb) &&
-           pskb_expand_head(skb, 0, 0, GFP_ATOMIC))
+       if (skb_unclone(skb, GFP_ATOMIC))
                return p->tcf_action;
 
        off = skb_network_offset(skb);