diff mbox series

[net] net/sched: The error lable position is corrected in ct_init_module

Message ID 20200730081428.35904-1-liujian56@huawei.com
State Accepted
Delegated to: David Miller
Headers show
Series [net] net/sched: The error lable position is corrected in ct_init_module | expand

Commit Message

Liu Jian July 30, 2020, 8:14 a.m. UTC
From: liujian <liujian56@huawei.com>

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@huawei.com>
---
 net/sched/act_ct.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

David Miller July 31, 2020, 11:36 p.m. UTC | #1
From: Liu Jian <liujian56@huawei.com>
Date: Thu, 30 Jul 2020 16:14:28 +0800

> From: liujian <liujian56@huawei.com>
> 
> 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@huawei.com>

Applied, thank you.
diff mbox series

Patch

diff --git a/net/sched/act_ct.c b/net/sched/act_ct.c
index 5928efb6449c..6ed1652d1e26 100644
--- a/net/sched/act_ct.c
+++ b/net/sched/act_ct.c
@@ -1543,10 +1543,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;
 }