diff options
| author | Dan Carpenter <[email protected]> | 2019-11-21 09:21:46 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-11-21 19:42:19 +0000 |
| commit | 0617aa988dacb9d8c1cb42fbb6c79896c7507e08 (patch) | |
| tree | 650ff162585032e222ff9fa91a7e05d10d87eda1 /net/tipc/node.c | |
| parent | vsock: avoid to assign transport if its initialization fails (diff) | |
| download | kernel-0617aa988dacb9d8c1cb42fbb6c79896c7507e08.tar.gz kernel-0617aa988dacb9d8c1cb42fbb6c79896c7507e08.zip | |
octeontx2-af: Fix uninitialized variable in debugfs
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions
