--- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -1029,6 +1029,9 @@ struct tc_action *tcf_action_init_1(stru if (!name) a->hw_stats = hw_stats; + if (!bind && ovr && err == ACT_P_CREATED) + refcount_set(&a->tcfa_refcnt, 2); + return a; err_out: