]> err.no Git - linux-2.6/blobdiff - net/core/neighbour.c
net: in the first call to neigh_seq_next, call neigh_get_first, not neigh_get_idx.
[linux-2.6] / net / core / neighbour.c
index f62c8af85d389eed79b8f8fb4c86d24d476707b0..a57de755c8cc62bb839d4f28f0c91e06a83532a6 100644 (file)
@@ -2385,7 +2385,7 @@ void *neigh_seq_next(struct seq_file *seq, void *v, loff_t *pos)
        void *rc;
 
        if (v == SEQ_START_TOKEN) {
-               rc = neigh_get_idx(seq, pos);
+               rc = neigh_get_first(seq);
                goto out;
        }