]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: remove a redundant goto chain check
authorCong Wang <xiyou.wangcong@gmail.com>
Mon, 28 Sep 2020 18:31:03 +0000 (11:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Sep 2020 19:58:45 +0000 (12:58 -0700)
commite4ec8980b44ee502f4d9893e99c59e6ba2bc17a7
treec24b33b8d98025e80da071fb8ff2cb90db5df0f8
parent5e74978af129d32e12565e4bf3cb0e83c494bde8
net_sched: remove a redundant goto chain check

All TC actions call tcf_action_check_ctrlact() to validate
goto chain, so this check in tcf_action_init_1() is actually
redundant. Remove it to save troubles of leaking memory.

Fixes: ee6863fdc727 ("net_sched: defer tcf_idr_insert() in tcf_action_init_1()")
Reported-by: Vlad Buslov <vladbu@mellanox.com>
Suggested-by: Davide Caratti <dcaratti@redhat.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_api.c