]> 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)
commit6a1cc7ecf79cdd229dc8428271a4ac12cd071106
tree30057b306c266194b6e920d1010ce70c8ae4ecf1
parent6f73c5ce01110501a98ce272d48ea9c1bb345341
Revert "inet: fix double request socket freeing"

This reverts commit eeb858d3c0125d7e6c4fe4385cb454a99b289363.

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