OpenCloudOS-Kernel/drivers/net/ethernet/marvell/octeontx2/af
Dan Carpenter 0617aa988d 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: f967488d09 ("octeontx2-af: Add per CGX port level NIX Rx/Tx counters")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-11-21 11:42:19 -08:00
..
Makefile octeontx2-af: Dump current resource provisioning status 2019-11-14 18:09:15 -08:00
cgx.c octeontx2-af: Support fixed transmit scheduler topology 2019-11-14 18:09:16 -08:00
cgx.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-11-16 21:51:42 -08:00
cgx_fw_if.h octeontx2-af: Use the correct style for SPDX License Identifier 2019-11-16 12:14:20 -08:00
common.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-11-16 21:51:42 -08:00
mbox.c octeontx2-af: Sync hw mbox with bounce buffer. 2019-11-14 18:09:15 -08:00
mbox.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-11-16 21:51:42 -08:00
npc.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-11-16 21:51:42 -08:00
npc_profile.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-11-16 21:51:42 -08:00
rvu.c octeontx2-af: Start/Stop traffic in CGX along with NPC 2019-11-14 18:09:16 -08:00
rvu.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-11-16 21:51:42 -08:00
rvu_cgx.c octeontx2-af: Fix uninitialized variable in debugfs 2019-11-21 11:42:19 -08:00
rvu_debugfs.c octeontx2-af: Add NPC MCAM entry allocation status to debugfs 2019-11-14 18:09:15 -08:00
rvu_nix.c octeontx2-af: Start/Stop traffic in CGX along with NPC 2019-11-14 18:09:16 -08:00
rvu_npa.c octeontx2-af: Add option to disable dynamic entry caching in NDC 2019-11-14 18:09:16 -08:00
rvu_npc.c octeontx2-af: Enable broadcast packet replication 2019-11-14 18:09:16 -08:00
rvu_reg.c octeontx2-af: NIX Tx scheduler queue config support 2018-10-22 20:15:37 -07:00
rvu_reg.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-11-16 21:51:42 -08:00
rvu_struct.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-11-16 21:51:42 -08:00