diff options
author | Vakul Garg <vakul.garg@nxp.com> | 2018-09-25 20:21:51 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-25 10:46:59 -0700 |
commit | c774973e91e1f08c58bb25c950a30252cfde650c (patch) | |
tree | e32f6a52ca75b0c1586017cca6ba67640a220937 /Kconfig | |
parent | b85135b595db01353a18ccfeafa9d9ae9028745e (diff) | |
download | linux-stable-c774973e91e1f08c58bb25c950a30252cfde650c.tar.gz linux-stable-c774973e91e1f08c58bb25c950a30252cfde650c.tar.bz2 linux-stable-c774973e91e1f08c58bb25c950a30252cfde650c.zip |
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: a42055e8d2c3 ("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>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions