diff --git a/net/sched/act_mirred.c b/net/sched/act_mirred.c index 8bf66d0a6800006e070eacc77519257410696097..f767e78e38c9878add2d3371d7b974005255b81d 100644 --- a/net/sched/act_mirred.c +++ b/net/sched/act_mirred.c @@ -159,6 +159,9 @@ static int tcf_mirred_init(struct net *net, struct nlattr *nla, } m = to_mirred(*a); + if (ret == ACT_P_CREATED) + INIT_LIST_HEAD(&m->tcfm_list); + spin_lock_bh(&m->tcf_lock); m->tcf_action = parm->action; m->tcfm_eaction = parm->eaction;