diff options
author | Vlad Buslov <vladbu@nvidia.com> | 2021-04-07 18:36:02 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-08 13:47:33 -0700 |
commit | 4ba86128ba077fbb7d86516ae24ed642e6c3adef (patch) | |
tree | af2ecabc8b4b157e6de02a6840a1e78fad6026d5 /net/sched/act_api.c | |
parent | 8a12f8836145ffe37e9c8733dce18c22fb668b66 (diff) | |
download | linux-4ba86128ba077fbb7d86516ae24ed642e6c3adef.tar.gz linux-4ba86128ba077fbb7d86516ae24ed642e6c3adef.tar.bz2 linux-4ba86128ba077fbb7d86516ae24ed642e6c3adef.zip |
Revert "net: sched: bump refcount for new action in ACT replace mode"
This reverts commit 6855e8213e06efcaf7c02a15e12b1ae64b9a7149.
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>
Diffstat (limited to 'net/sched/act_api.c')
-rw-r--r-- | net/sched/act_api.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 43cceb924976..b919826939e0 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -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: |