diff options
| -rw-r--r-- | net/tls/tls_device.c | 3 | ||||
| -rw-r--r-- | net/tls/tls_main.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/net/tls/tls_device.c b/net/tls/tls_device.c index 4a1da837a733..135a7ee9db03 100644 --- a/net/tls/tls_device.c +++ b/net/tls/tls_device.c | |||
| @@ -558,9 +558,6 @@ void tls_device_write_space(struct sock *sk, struct tls_context *ctx) | |||
| 558 | MSG_DONTWAIT | MSG_NOSIGNAL); | 558 | MSG_DONTWAIT | MSG_NOSIGNAL); |
| 559 | sk->sk_allocation = sk_allocation; | 559 | sk->sk_allocation = sk_allocation; |
| 560 | } | 560 | } |
| 561 | |||
| 562 | if (!rc) | ||
| 563 | ctx->sk_write_space(sk); | ||
| 564 | } | 561 | } |
| 565 | 562 | ||
| 566 | void handle_device_resync(struct sock *sk, u32 seq, u64 rcd_sn) | 563 | void handle_device_resync(struct sock *sk, u32 seq, u64 rcd_sn) |
diff --git a/net/tls/tls_main.c b/net/tls/tls_main.c index 17e8667917aa..df921a2904b9 100644 --- a/net/tls/tls_main.c +++ b/net/tls/tls_main.c | |||
| @@ -146,7 +146,6 @@ retry: | |||
| 146 | } | 146 | } |
| 147 | 147 | ||
| 148 | ctx->in_tcp_sendpages = false; | 148 | ctx->in_tcp_sendpages = false; |
| 149 | ctx->sk_write_space(sk); | ||
| 150 | 149 | ||
| 151 | return 0; | 150 | return 0; |
| 152 | } | 151 | } |
| @@ -228,6 +227,8 @@ static void tls_write_space(struct sock *sk) | |||
| 228 | else | 227 | else |
| 229 | #endif | 228 | #endif |
| 230 | tls_sw_write_space(sk, ctx); | 229 | tls_sw_write_space(sk, ctx); |
| 230 | |||
| 231 | ctx->sk_write_space(sk); | ||
| 231 | } | 232 | } |
| 232 | 233 | ||
| 233 | static void tls_ctx_free(struct tls_context *ctx) | 234 | static void tls_ctx_free(struct tls_context *ctx) |
