aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_trie.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/fib_trie.c')
-rw-r--r--net/ipv4/fib_trie.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index 66247f38b371..705e3ce86df9 100644
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -2378,6 +2378,7 @@ static unsigned fib_flag_trans(int type, u32 mask, const struct fib_info *fi)
2378 */ 2378 */
2379static int fib_route_seq_show(struct seq_file *seq, void *v) 2379static int fib_route_seq_show(struct seq_file *seq, void *v)
2380{ 2380{
2381 const struct fib_trie_iter *iter = seq->private;
2381 struct leaf *l = v; 2382 struct leaf *l = v;
2382 int i; 2383 int i;
2383 char bf[128]; 2384 char bf[128];
@@ -2389,6 +2390,8 @@ static int fib_route_seq_show(struct seq_file *seq, void *v)
2389 return 0; 2390 return 0;
2390 } 2391 }
2391 2392
2393 if (iter->trie == trie_local)
2394 return 0;
2392 if (IS_TNODE(l)) 2395 if (IS_TNODE(l))
2393 return 0; 2396 return 0;
2394 2397