diff options
Diffstat (limited to 'net/tls/tls_sw.c')
-rw-r--r-- | net/tls/tls_sw.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c index 20b191227969..b50ced862f6f 100644 --- a/net/tls/tls_sw.c +++ b/net/tls/tls_sw.c | |||
@@ -2052,20 +2052,7 @@ void tls_sw_free_resources_tx(struct sock *sk) | |||
2052 | /* Free up un-sent records in tx_list. First, free | 2052 | /* Free up un-sent records in tx_list. First, free |
2053 | * the partially sent record if any at head of tx_list. | 2053 | * the partially sent record if any at head of tx_list. |
2054 | */ | 2054 | */ |
2055 | if (tls_ctx->partially_sent_record) { | 2055 | if (tls_free_partial_record(sk, tls_ctx)) { |
2056 | struct scatterlist *sg = tls_ctx->partially_sent_record; | ||
2057 | |||
2058 | while (1) { | ||
2059 | put_page(sg_page(sg)); | ||
2060 | sk_mem_uncharge(sk, sg->length); | ||
2061 | |||
2062 | if (sg_is_last(sg)) | ||
2063 | break; | ||
2064 | sg++; | ||
2065 | } | ||
2066 | |||
2067 | tls_ctx->partially_sent_record = NULL; | ||
2068 | |||
2069 | rec = list_first_entry(&ctx->tx_list, | 2056 | rec = list_first_entry(&ctx->tx_list, |
2070 | struct tls_rec, list); | 2057 | struct tls_rec, list); |
2071 | list_del(&rec->list); | 2058 | list_del(&rec->list); |