From 5dbe8bb5cb68ac17030248a9b3d02754cdc707b0 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Mon, 8 Dec 2003 05:40:01 -0800 Subject: [PATCH] [IPV6]: Fix TCP socket leak. TCP IPV6 ->hash() method should not grab a socket reference. --- net/ipv6/tcp_ipv6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 623ec7c2db399..2b68e22723f03 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -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); } -- 2.53.0