X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fdccp%2Fipv6.c;h=6e05981f271e554ef4ddde25bb4029c7e3e95933;hb=d1381f45ad54e0bb40ef19f99e87187ff3458bdb;hp=56840b249f3b6a13c9b9a842af3e29f5b490b355;hpb=25e4b485fb8eeda8aa7a2e1e45fbb31538565117;p=karo-tx-linux.git diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c index 56840b249f3b..6e05981f271e 100644 --- a/net/dccp/ipv6.c +++ b/net/dccp/ipv6.c @@ -585,7 +585,8 @@ static struct sock *dccp_v6_request_recv_sock(struct sock *sk, newinet->inet_rcv_saddr = LOOPBACK4_IPV6; if (__inet_inherit_port(sk, newsk) < 0) { - sock_put(newsk); + inet_csk_prepare_forced_close(newsk); + dccp_done(newsk); goto out; } __inet6_hash(newsk, NULL);