]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: act_gate: Unlock ->tcfa_lock in tc_setup_flow_action()
authorGuillaume Nault <gnault@redhat.com>
Tue, 20 Oct 2020 15:34:31 +0000 (17:34 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 Oct 2020 04:00:52 +0000 (21:00 -0700)
commite8abfff6fae74d23cba3f5a4181bdb610e279206
tree8e06cdf1e3b46284c2102ad9cd92c790429ee66f
parente245dbd27abe03d8680f4447a353a5e1cd9cf4f6
net/sched: act_gate: Unlock ->tcfa_lock in tc_setup_flow_action()

We need to jump to the "err_out_locked" label when
tcf_gate_get_entries() fails. Otherwise, tc_setup_flow_action() exits
with ->tcfa_lock still held.

Fixes: 411b4868fa0e ("net: schedule: add action gate offloading")
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Link: https://lore.kernel.org/r/12f60e385584c52c22863701c0185e40ab08a7a7.1603207948.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/cls_api.c