From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] tls: Fixed uninitialised vars warning Date: Mon, 24 Sep 2018 12:26:23 -0700 (PDT) Message-ID: <20180924.122623.1139329132321083868.davem@davemloft.net> References: <20180924103949.23822-1-vakul.garg@nxp.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, borisp@mellanox.com, aviadye@mellanox.com, davejwatson@fb.com, doronrk@fb.com To: vakul.garg@nxp.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:51128 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725982AbeIYBaF (ORCPT ); Mon, 24 Sep 2018 21:30:05 -0400 In-Reply-To: <20180924103949.23822-1-vakul.garg@nxp.com> Sender: netdev-owner@vger.kernel.org List-ID: 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: a42055e8d2c3 ("net/tls: Add support for async encryption") > Signed-off-by: Vakul Garg Applied.