WSL2-Linux-Kernel/net/tls
Vakul Garg c774973e91 tls: Fixed a memory leak during socket close
During socket close, if there is a open record with tx context, it needs
to be be freed apart from freeing up plaintext and encrypted scatter
lists. This patch frees up the open record if present in tx context.

Also tls_free_both_sg() has been renamed to tls_free_open_rec() to
indicate that the free record in tx context is being freed inside the
function.

Fixes: a42055e8d2 ("net/tls: Add support for async encryption")
Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-09-25 10:46:59 -07:00
..
Kconfig
Makefile
tls_device.c tls: zero the crypto information from tls_context before freeing 2018-09-13 12:03:47 -07:00
tls_device_fallback.c tls: zero the crypto information from tls_context before freeing 2018-09-13 12:03:47 -07:00
tls_main.c net/tls: Fixed race condition in async encryption 2018-09-24 12:24:24 -07:00
tls_sw.c tls: Fixed a memory leak during socket close 2018-09-25 10:46:59 -07:00