net/sched: The error lable position is corrected in ct_init_module
authorliujian <liujian56@huawei.com>
Thu, 30 Jul 2020 08:14:28 +0000 (16:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2020 23:35:39 +0000 (16:35 -0700)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_ct.c

index 5928efb..6ed1652 100644 (file)
@@ -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;
 }