]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
tls: don't override sk_write_space if tls_set_sw_offload fails.
authorIlya Lesokhin <ilyal@mellanox.com>
Mon, 13 Nov 2017 08:22:49 +0000 (10:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Nov 2017 07:26:35 +0000 (16:26 +0900)
commitee181e5201e640a4b92b217e9eab2531dab57d2c
treed0d4e6feae47f3b33d9f2672ba4828a63364ea6e
parent196c31b4b54474b31dee3c30352c45c2a93e9226
tls: don't override sk_write_space if tls_set_sw_offload fails.

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>
net/tls/tls_main.c