diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-13 00:44:08 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-13 03:58:13 +0100 |
commit | 41b822c59e21414d829bcfd00df0c8f7f13b1b95 (patch) | |
tree | 68dcc05d4673f0e196dc772ad063f93b008bf25d /net/core/sock.c | |
parent | net: add req_prot_cleanup() & req_prot_init() helpers (diff) | |
download | linux-41b822c59e21414d829bcfd00df0c8f7f13b1b95.tar.xz linux-41b822c59e21414d829bcfd00df0c8f7f13b1b95.zip |
inet: prepare sock_edemux() & sock_gen_put() for new SYN_RECV state
sock_edemux() & sock_gen_put() should be ready to cope with request socks.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/sock.c')
-rw-r--r-- | net/core/sock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index 63d871a91b5c..4bc42efb3e40 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -1668,6 +1668,8 @@ void sock_edemux(struct sk_buff *skb) if (sk->sk_state == TCP_TIME_WAIT) inet_twsk_put(inet_twsk(sk)); + else if (sk->sk_state == TCP_NEW_SYN_RECV) + reqsk_put(inet_reqsk(sk)); else sock_put(sk); } |