From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2F043D99D for ; Thu, 26 Oct 2023 22:14:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sOGBtMjl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E3ECC433C7; Thu, 26 Oct 2023 22:14:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698358479; bh=wdtxi9YB4Q7u6/Z/exalHB5taKXwpbqqYgnzOSqDJYc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sOGBtMjlzkNafi0qHI+8/5DxxHZt/kBWocDwsMQVNApHs83eTyswpD4Mv5Nm18CdN fNDKPHzW8d1okDP91OssQumyw2cRR7mzn/515BMAAqAvuL4JAijQGs3Tqj3z4u3GjS /kJQOZpYNRFN2hIJ+AT6HqYVUdqTQV9NviN0J0tHl4Bw2cFozzVWVU0Q14CNh484io keq7sWuLvUpC2bAu+HHNFBfSDQexzWPWaRqQ3iRBwSbvMVRdaJa80xeUrpzeZvTD8P Prgs0SW1PfK+20KLMgnoCrMeSNPMjLdr751Hn36oVfpN//apZsjmt8CPWu0OtuiUFD b5FC/ZIUgZ4dg== Date: Thu, 26 Oct 2023 15:14:37 -0700 From: Saeed Mahameed To: Przemek Kitszel Cc: netdev@vger.kernel.org, Saeed Mahameed , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jiri Pirko , linux-kernel@vger.kernel.org, Leon Romanovsky , Tariq Toukan , Danielle Ratson , Ido Schimmel , Petr Machata , Moshe Shemesh , Eran Ben Elisha , Aya Levin , Simon Horman , Dan Carpenter Subject: Re: [PATCH net-next] net/mlx5: fix uninit value use Message-ID: References: <20231025145050.36114-1-przemyslaw.kitszel@intel.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20231025145050.36114-1-przemyslaw.kitszel@intel.com> On 25 Oct 16:50, Przemek Kitszel wrote: >Avoid use of uninitialized state variable. > >In case of mlx5e_tx_reporter_build_diagnose_output_sq_common() it's better >to still collect other data than bail out entirely. > >Reported-by: Dan Carpenter >Link: https://lore.kernel.org/netdev/8bd30131-c9f2-4075-a575-7fa2793a1760@moroto.mountain >Fixes: d17f98bf7cc9 ("net/mlx5: devlink health: use retained error fmsg API") >Signed-off-by: Przemek Kitszel Applied to net-next-mlx5