]> git.baikalelectronics.ru Git - kernel.git/commit
tcp/dccp: add inet_csk_reqsk_queue_drop_and_put() helper
authorEric Dumazet <edumazet@google.com>
Wed, 14 Oct 2015 18:16:27 +0000 (11:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Oct 2015 07:52:18 +0000 (00:52 -0700)
commit8daeb5bb6c912f25223a9dddca1043a25b8ca4bb
treef88db80f207233d0b5eef878687bc032f89f9269
parent6a1cc7ecf79cdd229dc8428271a4ac12cd071106
tcp/dccp: add inet_csk_reqsk_queue_drop_and_put() helper

Let's reduce the confusion about inet_csk_reqsk_queue_drop() :
In many cases we also need to release reference on request socket,
so add a helper to do this, reducing code size and complexity.

Fixes: 2629ff91ee82 ("tcp/dccp: fix behavior of stale SYN_RECV request sockets")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_connection_sock.h
net/dccp/ipv4.c
net/dccp/ipv6.c
net/ipv4/inet_connection_sock.c
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c