fib_trie: Fix warning on fib4_rules_exit
[deliverable/linux.git] / net / ipv4 / fib_frontend.c
index e5b6b0534c5f5e90f9369cafec3c6089d6ebada4..767120111d90df55ca7b0f949e6dadd760af54d5 100644 (file)
@@ -1176,10 +1176,6 @@ static void ip_fib_net_exit(struct net *net)
 
        rtnl_lock();
 
-#ifdef CONFIG_IP_MULTIPLE_TABLES
-       fib4_rules_exit(net);
-#endif
-
        for (i = 0; i < FIB_TABLE_HASHSZ; i++) {
                struct hlist_head *head = &net->ipv4.fib_table_hash[i];
                struct hlist_node *tmp;
@@ -1212,6 +1208,10 @@ static void ip_fib_net_exit(struct net *net)
                        fib_free_table(tb);
                }
        }
+
+#ifdef CONFIG_IP_MULTIPLE_TABLES
+       fib4_rules_exit(net);
+#endif
        rtnl_unlock();
        kfree(net->ipv4.fib_table_hash);
 }
This page took 0.025157 seconds and 5 git commands to generate.