[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191121.114231.144140953957043920.davem@davemloft.net>
Date: Thu, 21 Nov 2019 11:42:31 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: dan.carpenter@...cle.com
Cc: sgoutham@...vell.com, lcherian@...vell.com, gakula@...vell.com,
jerinj@...vell.com, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH net-next] octeontx2-af: Fix uninitialized variable in
debugfs
From: Dan Carpenter <dan.carpenter@...cle.com>
Date: Thu, 21 Nov 2019 12:21:46 +0300
> If rvu_get_blkaddr() fails, then this rvu_cgx_nix_cuml_stats() returns
> zero and we write some uninitialized data into the debugfs output.
>
> On the error paths, the use of the uninitialized "*stat" is harmless,
> but it will lead to a Smatch warning (static analysis) and a UBSan
> warning (runtime analysis) so we should prevent that as well.
>
> Fixes: f967488d095e ("octeontx2-af: Add per CGX port level NIX Rx/Tx counters")
> Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
Applied.
Powered by blists - more mailing lists