]> git.hungrycats.org Git - linux/commitdiff
[TCP]: Dont tcp_listen_unlock unless it was locked.
authorAnders Gustafsson <andersg@0x63.nu>
Sun, 12 Jan 2003 16:13:38 +0000 (08:13 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Sun, 12 Jan 2003 16:13:38 +0000 (08:13 -0800)
net/ipv4/tcp_ipv4.c

index c2382aaa51e28e1fec757eee9fe1b14ef7a36b5b..e7b717747c48c5a92dd14a55b2cc5b5bf1896159 100644 (file)
@@ -2412,7 +2412,8 @@ static void tcp_seq_stop(struct seq_file *seq, void *v)
                        read_unlock_bh(&tp->syn_wait_lock);
                }
        case TCP_SEQ_STATE_LISTENING:
-               tcp_listen_unlock();
+               if (v != (void *)1)
+                       tcp_listen_unlock();
                break;
        case TCP_SEQ_STATE_TIME_WAIT:
        case TCP_SEQ_STATE_ESTABLISHED: