net_sched: defer tcf_idr_insert() in tcf_action_init_1()
[linux-2.6-block.git] / net / sched / act_csum.c
index f5826e457679f34a2e9816206b33268427d02f1c..4fa4fcb842ba7cee5b5d9b5a36caa2c83b02e6e2 100644 (file)
@@ -110,9 +110,6 @@ static int tcf_csum_init(struct net *net, struct nlattr *nla,
        if (params_new)
                kfree_rcu(params_new, rcu);
 
-       if (ret == ACT_P_CREATED)
-               tcf_idr_insert(tn, *a);
-
        return ret;
 put_chain:
        if (goto_ch)