summaryrefslogtreecommitdiffstats
path: root/Documentation/power
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2018-01-16 16:04:26 +0100
committerDavid S. Miller <davem@davemloft.net>2018-01-17 16:16:03 -0500
commitcf6d43ef66f416282121f436ce1bee9a25199d52 (patch)
tree0e2e7f8c15b36422f69874435375d3445688893f /Documentation/power
parent6ab6dd9e7f18dea51a6d65c0c28f0fd74332bfe6 (diff)
downloadlinux-stable-cf6d43ef66f416282121f436ce1bee9a25199d52.tar.gz
linux-stable-cf6d43ef66f416282121f436ce1bee9a25199d52.tar.bz2
linux-stable-cf6d43ef66f416282121f436ce1bee9a25199d52.zip
tls: fix sw_ctx leak
During setsockopt(SOL_TCP, TLS_TX), if initialization of the software context fails in tls_set_sw_offload(), we leak sw_ctx. We also don't reassign ctx->priv_ctx to NULL, so we can't even do another attempt to set it up on the same socket, as it will fail with -EEXIST. Fixes: 3c4d7559159b ('tls: kernel TLS support') Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/power')
0 files changed, 0 insertions, 0 deletions