diff --git a/net/sched/cls_tcindex.c b/net/sched/cls_tcindex.c index 065345832a69743fdd43090ead9971673134bfe8..61e95029c18f54f764df4f067a2530dbbd031798 100644 --- a/net/sched/cls_tcindex.c +++ b/net/sched/cls_tcindex.c @@ -151,6 +151,7 @@ static int tcindex_init(struct tcf_proto *tp) p->mask = 0xffff; p->hash = DEFAULT_HASH_SIZE; p->fall_through = 1; + refcount_set(&p->refcnt, 1); /* Paired with tcindex_destroy_work() */ rcu_assign_pointer(tp->root, p); return 0;