[SRU][F:linux-bluefield][PATCH V2 7/9] net/sched: The error lable position is corrected in ct_init_module

Bodong Wang bodong at nvidia.com
Wed Sep 1 17:14:18 UTC 2021


From: liujian <liujian56 at huawei.com>

BugLink: https://bugs.launchpad.net/bugs/1940872

Exchange the positions of the err_tbl_init and err_register labels in
ct_init_module function.

Fixes: c34b961a2492 ("net/sched: act_ct: Create nf flow table per zone")
Signed-off-by: liujian <liujian56 at huawei.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
(cherry picked from 8c5c51f5cac676e9065cb6de9feaa3a16a462675)
Signed-off-by: Bodong Wang <bodong at nvidia.com>
---
 net/sched/act_ct.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/sched/act_ct.c b/net/sched/act_ct.c
index 96fd196..ce6d9e6 100644
--- a/net/sched/act_ct.c
+++ b/net/sched/act_ct.c
@@ -1556,10 +1556,10 @@ static int __init ct_init_module(void)
 
 	return 0;
 
-err_tbl_init:
-	destroy_workqueue(act_ct_wq);
 err_register:
 	tcf_ct_flow_tables_uninit();
+err_tbl_init:
+	destroy_workqueue(act_ct_wq);
 	return err;
 }
 
-- 
1.8.3.1




More information about the kernel-team mailing list