]> git.baikalelectronics.ru Git - kernel.git/commit
net/tls: Fixed return value when tls_complete_pending_work() fails
authorVakul Garg <vakul.garg@nxp.com>
Mon, 10 Sep 2018 17:23:46 +0000 (22:53 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Sep 2018 07:04:28 +0000 (00:04 -0700)
commit4126684f3dc4844de7768cd8eb69dce58005cafb
tree881f8e22ab004a269dec1edd4bac819d562242a5
parent2ec336f054100daec75805ee5d8e7ebb34d54c0f
net/tls: Fixed return value when tls_complete_pending_work() fails

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: c2c217d10788 ("tls: kernel TLS support")
Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c