Wentao Liang <vulab@xxxxxxxxxxx> writes: > 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@xxxxxxxxxxxxxxx # 5.9+ > Signed-off-by: Wentao Liang <vulab@xxxxxxxxxxx> Reviewed-by: Petr Machata <petrm@xxxxxxxxxx> Thanks!