summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWentao Liang <vulab@iscas.ac.cn>2025-02-12 23:23:11 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-21 14:01:37 +0100
commit23ab814ae449179ee171e8070fa0cbda12627b82 (patch)
treebfaa65181b2d04834f8a4d9f33aa6bad49a48179 /include
parentc45aa877256a4ec8f9a93a441d7041087cc0f8cf (diff)
downloadlinux-23ab814ae449179ee171e8070fa0cbda12627b82.tar.gz
linux-23ab814ae449179ee171e8070fa0cbda12627b82.tar.bz2
linux-23ab814ae449179ee171e8070fa0cbda12627b82.zip
mlxsw: Add return value check for mlxsw_sp_port_get_stats_raw()
commit fee5d688940690cc845937459e340e4e02598e90 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions