Commit df6d0861 authored by David S. Miller's avatar David S. Miller

[IPV6]: Fix TCP socket leak, do not grab socket reference when adding to main hashes.

parent e67eee86
......@@ -485,7 +485,7 @@ static int tcp_v6_check_established(struct sock *sk)
unique:
BUG_TRAP(sk_unhashed(sk));
sk_add_node(sk, &head->chain);
__sk_add_node(sk, &head->chain);
sk->sk_hashent = hash;
sock_prot_inc_use(sk->sk_prot);
write_unlock_bh(&head->lock);
......
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