diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-12 16:44:08 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-12 22:58:13 -0400 |
commit | 41b822c59e21414d829bcfd00df0c8f7f13b1b95 (patch) | |
tree | 68dcc05d4673f0e196dc772ad063f93b008bf25d /net/ipv4/inet_hashtables.c | |
parent | 0159dfd3d7dff2da646f53039d29319b830207be (diff) | |
download | op-kernel-dev-41b822c59e21414d829bcfd00df0c8f7f13b1b95.zip op-kernel-dev-41b822c59e21414d829bcfd00df0c8f7f13b1b95.tar.gz |
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/ipv4/inet_hashtables.c')
-rw-r--r-- | net/ipv4/inet_hashtables.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/inet_hashtables.c b/net/ipv4/inet_hashtables.c index f6a12b9..64401a2 100644 --- a/net/ipv4/inet_hashtables.c +++ b/net/ipv4/inet_hashtables.c @@ -262,6 +262,8 @@ void sock_gen_put(struct sock *sk) if (sk->sk_state == TCP_TIME_WAIT) inet_twsk_free(inet_twsk(sk)); + else if (sk->sk_state == TCP_NEW_SYN_RECV) + reqsk_free(inet_reqsk(sk)); else sk_free(sk); } |