diff options
-rw-r--r-- | net/tls/tls_device.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/tls/tls_device.c b/net/tls/tls_device.c index 9e1bec1a0a28..41c106e45f01 100644 --- a/net/tls/tls_device.c +++ b/net/tls/tls_device.c | |||
@@ -159,12 +159,8 @@ static void tls_icsk_clean_acked(struct sock *sk, u32 acked_seq) | |||
159 | 159 | ||
160 | spin_lock_irqsave(&ctx->lock, flags); | 160 | spin_lock_irqsave(&ctx->lock, flags); |
161 | info = ctx->retransmit_hint; | 161 | info = ctx->retransmit_hint; |
162 | if (info && !before(acked_seq, info->end_seq)) { | 162 | if (info && !before(acked_seq, info->end_seq)) |
163 | ctx->retransmit_hint = NULL; | 163 | ctx->retransmit_hint = NULL; |
164 | list_del(&info->list); | ||
165 | destroy_record(info); | ||
166 | deleted_records++; | ||
167 | } | ||
168 | 164 | ||
169 | list_for_each_entry_safe(info, temp, &ctx->records_list, list) { | 165 | list_for_each_entry_safe(info, temp, &ctx->records_list, list) { |
170 | if (before(acked_seq, info->end_seq)) | 166 | if (before(acked_seq, info->end_seq)) |