]> git.hungrycats.org Git - linux/commitdiff
[IPV6]: Fix TCP socket leak.
authorArnaldo Carvalho de Melo <acme@conectiva.com.br>
Mon, 8 Dec 2003 13:40:01 +0000 (05:40 -0800)
committerArnaldo Carvalho de Melo <acme@conectiva.com.br>
Mon, 8 Dec 2003 13:40:01 +0000 (05:40 -0800)
TCP IPV6 ->hash() method should not grab a socket reference.

net/ipv6/tcp_ipv6.c

index 623ec7c2db3995477c77a5eef66e165bf4709190..2b68e22723f03654f630b3ece30f53d1f327f05c 100644 (file)
@@ -222,7 +222,7 @@ static __inline__ void __tcp_v6_hash(struct sock *sk)
                write_lock(lock);
        }
 
-       sk_add_node(sk, list);
+       __sk_add_node(sk, list);
        sock_prot_inc_use(sk->sk_prot);
        write_unlock(lock);
 }