diff options
-rw-r--r-- | net/ipv6/ip6_fib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c index 74c21b924a79..608327661960 100644 --- a/net/ipv6/ip6_fib.c +++ b/net/ipv6/ip6_fib.c | |||
@@ -1349,8 +1349,8 @@ static int fib6_walk_continue(struct fib6_walker_t *w) | |||
1349 | if (w->leaf && fn->fn_flags & RTN_RTINFO) { | 1349 | if (w->leaf && fn->fn_flags & RTN_RTINFO) { |
1350 | int err; | 1350 | int err; |
1351 | 1351 | ||
1352 | if (w->count < w->skip) { | 1352 | if (w->skip) { |
1353 | w->count++; | 1353 | w->skip--; |
1354 | continue; | 1354 | continue; |
1355 | } | 1355 | } |
1356 | 1356 | ||