Revert "inet: fix double request socket freeing"
authorEric Dumazet <edumazet@google.com>
Wed, 14 Oct 2015 18:16:26 +0000 (11:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Oct 2015 07:52:17 +0000 (00:52 -0700)
commitef84d8ce5a36d0c4a6454e7e9dff54d19f96a25f
tree30057b306c266194b6e920d1010ce70c8ae4ecf1
parent47ea0325337b166c1c8695119aa6e83cdc035ef5
Revert "inet: fix double request socket freeing"

This reverts commit c69736696cf3742b37d850289dc0d7ead177bb14.

At the time of above commit, tcp_req_err() and dccp_req_err()
were dead code, as SYN_RECV request sockets were not yet in ehash table.

Real bug was fixed later in a different commit.

We need to revert to not leak a refcount on request socket.

inet_csk_reqsk_queue_drop_and_put() will be added
in following commit to make clean inet_csk_reqsk_queue_drop()
does not release the reference owned by caller.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/ipv4.c
net/ipv4/tcp_ipv4.c