commit | 2b8b2e76222f1241cec381eb0ec599ee33e9cd00 | [log] [tgz] |
---|---|---|
author | Ilya Lesokhin <ilyal@mellanox.com> | Mon Nov 13 10:22:49 2017 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Dec 05 19:41:10 2018 +0100 |
tree | a5fc29fea89dcfec97c5de69cba5b583e65a5036 | |
parent | 93f16446c8ddacbf26ae8408ecd9c9c397b8d5b4 [diff] |
tls: don't override sk_write_space if tls_set_sw_offload fails. commit ee181e5201e640a4b92b217e9eab2531dab57d2c upstream. If we fail to enable tls in the kernel we shouldn't override the sk_write_space callback Fixes: 3c4d7559159b ('tls: kernel TLS support') Signed-off-by: Ilya Lesokhin <ilyal@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: Sasha Levin <sashal@kernel.org>