]> git.baikalelectronics.ru Git - 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)
commitb41845250cddd04354458e86a860bdfb7625d962
treed0d4e6feae47f3b33d9f2672ba4828a63364ea6e
parent48318f93a185e20e10f535c79be2fe6fcbfa7139
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: 3a71956a2d9a ('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