]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Revert "net: sched: bump refcount for new action in ACT replace mode"
authorVlad Buslov <vladbu@nvidia.com>
Wed, 7 Apr 2021 15:36:02 +0000 (18:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Apr 2021 20:47:33 +0000 (13:47 -0700)
This reverts commit ce66e619956d3f0471f02210442e547bdca83868.

Following commit in series fixes the issue without introducing regression
in error rollback of tcf_action_destroy().

Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_api.c

index 43cceb924976fbf644bdcb962b3175c199110e1b..b919826939e0bd4e3b5fc986f024b3e1f0f5e4c6 100644 (file)
@@ -1042,9 +1042,6 @@ struct tc_action *tcf_action_init_1(struct net *net, struct tcf_proto *tp,
        if (err != ACT_P_CREATED)
                module_put(a_o->owner);
 
-       if (!bind && ovr && err == ACT_P_CREATED)
-               refcount_set(&a->tcfa_refcnt, 2);
-
        return a;
 
 err_out: