linux-brain/net/tls
Vakul Garg 39d9e1c62e net/tls: Fixed return value when tls_complete_pending_work() fails
commit 150085791a upstream.

In tls_sw_sendmsg() and tls_sw_sendpage(), the variable 'ret' has
been set to return value of tls_complete_pending_work(). This allows
return of proper error code if tls_complete_pending_work() fails.

Fixes: 3c4d755915 ("tls: kernel TLS support")
Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[bwh: Backported to 4.14: adjust context]
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-05 19:41:11 +01:00
..
Kconfig tls: update Kconfig 2017-06-17 22:56:46 -04:00
Makefile tls: kernel TLS support 2017-06-15 12:12:40 -04:00
tls_main.c tls: Use correct sk->sk_prot for IPV6 2018-12-05 19:41:11 +01:00
tls_sw.c net/tls: Fixed return value when tls_complete_pending_work() fails 2018-12-05 19:41:11 +01:00