linux-hardened/drivers/net/ethernet/mellanox
Arkadi Sharshevsky 6b1206bbbc mlxsw: spectrum_router: Fix rif counter freeing routine
During rif counter freeing the counter index can be invalid. Add check
of validity before freeing the counter.

Fixes: e0c0afd8aa ("mlxsw: spectrum: Support for counters on router interfaces")
Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-05-18 11:04:00 -04:00
..
mlx4 net/mlx4_core: Use min3 to select number of MSI-X vectors 2017-05-15 14:20:26 -04:00
mlx5/core mlx5e: add CONFIG_INET dependency 2017-05-16 15:48:01 -04:00
mlxsw mlxsw: spectrum_router: Fix rif counter freeing routine 2017-05-18 11:04:00 -04:00
Kconfig mlxsw: Introduce Mellanox switch driver core 2015-07-30 00:04:59 -07:00
Makefile mlxsw: Introduce Mellanox switch driver core 2015-07-30 00:04:59 -07:00