]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1b4b889eb034441f7bfe2593285b7696071029ae
tree30057b306c266194b6e920d1010ce70c8ae4ecf1
parent559f9f3fc6f57cd56d1466903749210ad4b10f8e
Revert "inet: fix double request socket freeing"

This reverts commit 41cb62092aa670e23e15cfe75b2725cb15b34fed.

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