net/tls: Fixed return value when tls_complete_pending_work() fails
mainline inclusion from mainline-4.20 commit 15008579 category: bugfix bugzilla: 6073 CVE: NA ------------------------------------------------- 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: 3c4d7559 ("tls: kernel TLS support") Signed-off-by:Vakul Garg <vakul.garg@nxp.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Keefe LIU <liuqifa@huawei.com> Reviewed-by:
Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Loading
Please sign in to comment