aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/neighbour.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/neighbour.c')
-rw-r--r--net/core/neighbour.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index 2684794458ca..27d3fefeaa13 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -2414,7 +2414,10 @@ static struct pneigh_entry *pneigh_get_next(struct seq_file *seq,
2414 struct net *net = seq_file_net(seq); 2414 struct net *net = seq_file_net(seq);
2415 struct neigh_table *tbl = state->tbl; 2415 struct neigh_table *tbl = state->tbl;
2416 2416
2417 pn = pn->next; 2417 do {
2418 pn = pn->next;
2419 } while (pn && !net_eq(pneigh_net(pn), net));
2420
2418 while (!pn) { 2421 while (!pn) {
2419 if (++state->bucket > PNEIGH_HASHMASK) 2422 if (++state->bucket > PNEIGH_HASHMASK)
2420 break; 2423 break;