diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-08-01 14:36:01 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-05 13:15:30 -0700 |
commit | 5d92e631b8be8965a90c144320f06e096081a551 (patch) | |
tree | 41e1a228876173203fce25c0dd5affc20557e683 /include | |
parent | 4130741736d4bc27add2ab4f7e53bc401846ce27 (diff) |
net/tls: partially revert fix transition through disconnect with close
Looks like we were slightly overzealous with the shutdown()
cleanup. Even though the sock->sk_state can reach CLOSED again,
socket->state will not got back to SS_UNCONNECTED once
connections is ESTABLISHED. Meaning we will see EISCONN if
we try to reconnect, and EINVAL if we try to listen.
Only listen sockets can be shutdown() and reused, but since
ESTABLISHED sockets can never be re-connected() or used for
listen() we don't need to try to clean up the ULP state early.
Fixes: 32857cf57f92 ("net/tls: fix transition through disconnect with close")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/tls.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/net/tls.h b/include/net/tls.h index 9e425ac2de45..41b2d41bb1b8 100644 --- a/include/net/tls.h +++ b/include/net/tls.h @@ -290,8 +290,6 @@ struct tls_context { struct list_head list; refcount_t refcount; - - struct work_struct gc; }; enum tls_offload_ctx_dir { |