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
..
2019-11-01 09:30:48 -07:00
2019-10-23 06:26:33 -04:00
2019-10-17 05:58:44 -07:00
2019-10-25 14:22:20 -06:00
2019-10-28 16:47:22 -07:00
2019-11-15 18:34:00 -08:00
2019-10-24 08:45:31 +03:00
2019-11-15 13:02:34 -08:00
2019-11-09 03:26:47 +01:00
2019-11-02 13:54:56 -07:00
2019-11-16 18:14:32 -08:00
2019-11-08 08:15:01 -08:00
2019-11-04 18:43:23 +01:00
2019-11-08 11:29:58 +01:00
2019-10-22 11:43:17 +02:00
2019-11-06 21:35:34 -08:00
2019-10-23 21:15:21 +05:30
2019-10-10 17:05:20 +02:00
2019-10-17 11:27:05 +02:00
2019-11-07 20:07:30 -08:00
2019-11-02 13:54:56 -07:00
2019-11-03 23:41:11 +01:00
2019-11-15 08:47:34 -08:00
2019-11-07 11:54:54 -08:00
2019-10-01 14:49:45 -04:00
2019-10-28 18:46:55 -07:00
2019-11-04 15:01:25 +01:00
2019-10-24 20:52:21 +02:00
2019-10-27 15:57:19 +00:00
2019-11-16 21:51:42 -08:00
2019-11-15 18:37:20 -08:00
2019-10-20 12:14:41 +03:00
2019-10-30 10:30:22 +01:00
2019-10-25 14:25:15 +02:00
2019-11-20 12:30:47 -08:00
2019-10-21 02:05:21 +02:00
2019-10-18 22:29:36 -04:00
2019-10-04 14:38:46 +02:00
2019-10-09 11:08:03 +02:00
2019-10-24 08:49:25 +01:00
2019-11-20 12:39:29 -08:00
2019-11-14 14:57:53 +01:00
2019-10-07 09:56:36 +02:00
2019-11-21 11:42:19 -08:00
2019-11-20 12:30:40 -08:00
2019-09-23 17:20:40 -04:00
2019-09-29 10:33:41 -07:00
2019-11-08 18:15:55 -08:00
2019-11-04 11:21:25 -08:00
2019-10-23 10:58:44 +05:30
2019-10-14 21:44:26 +02:00
2019-10-15 23:51:36 +02:00
2019-09-28 08:14:15 -07:00
2019-11-20 11:25:24 -08:00
2019-11-07 10:06:46 +01:00
2019-10-14 15:31:50 +03:00
2019-11-16 21:51:42 -08:00
2019-11-08 18:38:06 +01:00
2019-10-23 15:31:17 -04:00
2019-10-24 10:26:33 +02:00
2019-11-15 12:28:28 -08:00
2019-11-11 09:14:36 -08:00
2019-11-16 21:51:42 -08:00
2019-10-24 16:55:45 +05:30
2019-10-08 17:38:15 +01:00
2019-11-12 15:22:24 -08:00
2019-11-02 11:15:52 -07:00
2019-09-25 17:51:41 -07:00
2019-10-21 02:05:21 +02:00
2019-10-08 12:08:21 +03:00
2019-10-15 21:38:41 +02:00
2019-10-31 18:57:54 +01:00
2019-10-15 14:07:01 -06:00
2019-11-14 18:12:18 -08:00
2019-11-08 12:12:57 +10:00
2019-10-10 14:50:32 +02:00
2019-10-28 04:24:46 -04:00
2019-10-10 15:35:41 +02:00
2019-11-05 16:58:12 +01:00
2019-10-19 17:09:11 -04:00