diff options
author | 2025-02-12 23:23:11 +0800 | |
---|---|---|
committer | 2025-02-13 08:38:06 -0800 | |
commit | fee5d688940690cc845937459e340e4e02598e90 (patch) | |
tree | c26fc0d92bf2bc1a52ba0dbc22b5168a786f32ff /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ipv6: mcast: add RCU protection to mld_newpack() (diff) | |
download | wireguard-linux-fee5d688940690cc845937459e340e4e02598e90.tar.xz wireguard-linux-fee5d688940690cc845937459e340e4e02598e90.zip |
mlxsw: Add return value check for mlxsw_sp_port_get_stats_raw()
Add a check for the return value of mlxsw_sp_port_get_stats_raw()
in __mlxsw_sp_port_get_stats(). If mlxsw_sp_port_get_stats_raw()
returns an error, exit the function to prevent further processing
with potentially invalid data.
Fixes: 614d509aa1e7 ("mlxsw: Move ethtool_ops to spectrum_ethtool.c")
Cc: stable@vger.kernel.org # 5.9+
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Link: https://patch.msgid.link/20250212152311.1332-1-vulab@iscas.ac.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions