aboutsummaryrefslogtreecommitdiffstats
path: root/net/tls/tls_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tls/tls_main.c')
-rw-r--r--net/tls/tls_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tls/tls_main.c b/net/tls/tls_main.c
index 06094de7a3d9..b428069a1b05 100644
--- a/net/tls/tls_main.c
+++ b/net/tls/tls_main.c
@@ -212,7 +212,7 @@ int tls_push_pending_closed_record(struct sock *sk,
212 struct tls_sw_context_tx *ctx = tls_sw_ctx_tx(tls_ctx); 212 struct tls_sw_context_tx *ctx = tls_sw_ctx_tx(tls_ctx);
213 213
214 if (tls_is_partially_sent_record(tls_ctx) || 214 if (tls_is_partially_sent_record(tls_ctx) ||
215 !list_empty(&ctx->tx_ready_list)) 215 !list_empty(&ctx->tx_list))
216 return tls_tx_records(sk, flags); 216 return tls_tx_records(sk, flags);
217 else 217 else
218 return tls_ctx->push_pending_record(sk, flags); 218 return tls_ctx->push_pending_record(sk, flags);
@@ -233,7 +233,7 @@ static void tls_write_space(struct sock *sk)
233 } 233 }
234 234
235 /* Schedule the transmission if tx list is ready */ 235 /* Schedule the transmission if tx list is ready */
236 if (is_tx_ready(ctx, tx_ctx) && !sk->sk_write_pending) { 236 if (is_tx_ready(tx_ctx) && !sk->sk_write_pending) {
237 /* Schedule the transmission */ 237 /* Schedule the transmission */
238 if (!test_and_set_bit(BIT_TX_SCHEDULED, &tx_ctx->tx_bitmask)) 238 if (!test_and_set_bit(BIT_TX_SCHEDULED, &tx_ctx->tx_bitmask))
239 schedule_delayed_work(&tx_ctx->tx_work.work, 0); 239 schedule_delayed_work(&tx_ctx->tx_work.work, 0);