diff options
Diffstat (limited to 'net/ipv4/fib_trie.c')
-rw-r--r-- | net/ipv4/fib_trie.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index 92b687e6a472..fc0624e6a649 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c | |||
@@ -2167,12 +2167,12 @@ static int fib_triestat_seq_show(struct seq_file *seq, void *v) | |||
2167 | struct fib_table *tb; | 2167 | struct fib_table *tb; |
2168 | 2168 | ||
2169 | trie_local = NULL; | 2169 | trie_local = NULL; |
2170 | tb = fib_get_table(RT_TABLE_LOCAL); | 2170 | tb = fib_get_table(&init_net, RT_TABLE_LOCAL); |
2171 | if (tb) | 2171 | if (tb) |
2172 | trie_local = (struct trie *) tb->tb_data; | 2172 | trie_local = (struct trie *) tb->tb_data; |
2173 | 2173 | ||
2174 | trie_main = NULL; | 2174 | trie_main = NULL; |
2175 | tb = fib_get_table(RT_TABLE_MAIN); | 2175 | tb = fib_get_table(&init_net, RT_TABLE_MAIN); |
2176 | if (tb) | 2176 | if (tb) |
2177 | trie_main = (struct trie *) tb->tb_data; | 2177 | trie_main = (struct trie *) tb->tb_data; |
2178 | 2178 | ||
@@ -2239,12 +2239,12 @@ static void *fib_trie_seq_start(struct seq_file *seq, loff_t *pos) | |||
2239 | struct fib_table *tb; | 2239 | struct fib_table *tb; |
2240 | 2240 | ||
2241 | if (!iter->trie_local) { | 2241 | if (!iter->trie_local) { |
2242 | tb = fib_get_table(RT_TABLE_LOCAL); | 2242 | tb = fib_get_table(&init_net, RT_TABLE_LOCAL); |
2243 | if (tb) | 2243 | if (tb) |
2244 | iter->trie_local = (struct trie *) tb->tb_data; | 2244 | iter->trie_local = (struct trie *) tb->tb_data; |
2245 | } | 2245 | } |
2246 | if (!iter->trie_main) { | 2246 | if (!iter->trie_main) { |
2247 | tb = fib_get_table(RT_TABLE_MAIN); | 2247 | tb = fib_get_table(&init_net, RT_TABLE_MAIN); |
2248 | if (tb) | 2248 | if (tb) |
2249 | iter->trie_main = (struct trie *) tb->tb_data; | 2249 | iter->trie_main = (struct trie *) tb->tb_data; |
2250 | } | 2250 | } |