diff --git a/net/sched/act_pedit.c b/net/sched/act_pedit.c index 50e3d945e1f48a12b8a499aeb07d50f3d286017a..a0593c9640db1def9adbd1ce1483973dfb300c4c 100644 --- a/net/sched/act_pedit.c +++ b/net/sched/act_pedit.c @@ -127,8 +127,7 @@ static int tcf_pedit(struct sk_buff *skb, struct tc_action *a, int i, munged = 0; unsigned int off; - if (!(skb->tc_verd & TC_OK2MUNGE)) { - /* should we set skb->cloned? */ + if (skb_cloned(skb)) { if (pskb_expand_head(skb, 0, 0, GFP_ATOMIC)) { return p->tcf_action; }