Commit 27114580 authored by Anders Gustafsson's avatar Anders Gustafsson Committed by David S. Miller

[TCP]: Fix infinite loop when reading /proc/net/tcp with ipv6-sockets.

parent 69904112
......@@ -2236,6 +2236,7 @@ static void *listening_get_next(struct seq_file *seq, void *cur)
goto get_req;
}
read_unlock_bh(&tp->syn_wait_lock);
sk = sk->next;
}
if (++st->bucket < TCP_LHTABLE_SIZE) {
sk = tcp_listening_hash[st->bucket];
......
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