Re: [PATCH net-next] tls: Fixed uninitialised vars warning

2018-09-24 Thread David Miller
From: Vakul Garg Date: Mon, 24 Sep 2018 16:09:49 +0530 > In tls_sw_sendmsg() and tls_sw_sendpage(), it is possible that the > uninitialised variable 'ret' gets passed to sk_stream_error(). So > initialise local variable 'ret' to '0. The warnings were detected by > 'smatch' tool. > > Fixes:

[PATCH net-next] tls: Fixed uninitialised vars warning

2018-09-24 Thread Vakul Garg
In tls_sw_sendmsg() and tls_sw_sendpage(), it is possible that the uninitialised variable 'ret' gets passed to sk_stream_error(). So initialise local variable 'ret' to '0. The warnings were detected by 'smatch' tool. Fixes: a42055e8d2c3 ("net/tls: Add support for async encryption") Signed-off-by: