Skip to content

Commit 4ba8612

Browse files
w1ldptrdavem330
authored andcommitted
Revert "net: sched: bump refcount for new action in ACT replace mode"
This reverts commit 6855e82. Following commit in series fixes the issue without introducing regression in error rollback of tcf_action_destroy(). Signed-off-by: Vlad Buslov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8a12f88 commit 4ba8612

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

net/sched/act_api.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,9 +1042,6 @@ struct tc_action *tcf_action_init_1(struct net *net, struct tcf_proto *tp,
10421042
if (err != ACT_P_CREATED)
10431043
module_put(a_o->owner);
10441044

1045-
if (!bind && ovr && err == ACT_P_CREATED)
1046-
refcount_set(&a->tcfa_refcnt, 2);
1047-
10481045
return a;
10491046

10501047
err_out:

0 commit comments

Comments
 (0)