Commit 35ed9412 authored by Daniel Ritz's avatar Daniel Ritz Committed by David S. Miller

[IPV4]: Fix /proc/net/route missing the default route.

parent 9ecf2be1
...@@ -936,14 +936,10 @@ static __inline__ struct fib_node *fib_get_next(struct seq_file *seq) ...@@ -936,14 +936,10 @@ static __inline__ struct fib_node *fib_get_next(struct seq_file *seq)
goto out; goto out;
} }
for (;;) {
iter->zone = iter->zone->fz_next; iter->zone = iter->zone->fz_next;
if (!iter->zone) if (!iter->zone)
goto out; goto out;
if (iter->zone->fz_next)
break;
}
iter->hash = iter->zone->fz_hash; iter->hash = iter->zone->fz_hash;
iter->bucket = 0; iter->bucket = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment