]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/ipv4/fib_rules.c
[IPV4]: Increase number of possible routing tables to 2^32
[mv-sheeva.git] / net / ipv4 / fib_rules.c
index 0330b9cc4b58468bc1ec3ad119f50dbc458206e8..ce185ac6f260617ff2460997d9286256454d813d 100644 (file)
@@ -172,8 +172,8 @@ static struct fib_table *fib_empty_table(void)
        u32 id;
 
        for (id = 1; id <= RT_TABLE_MAX; id++)
-               if (fib_tables[id] == NULL)
-                       return __fib_new_table(id);
+               if (fib_get_table(id) == NULL)
+                       return fib_new_table(id);
        return NULL;
 }