commit | 6b1206bbbce6092b2ec412125300889e6e551bc2 | [log] [tgz] |
---|---|---|
author | Arkadi Sharshevsky <arkadis@mellanox.com> | Thu May 18 09:18:53 2017 +0200 |
committer | David S. Miller <davem@davemloft.net> | Thu May 18 11:04:00 2017 -0400 |
tree | 4edd249eae86175b3b3075f6c4e133fe56b0f028 | |
parent | 6dd4aba36f2dca00c3b6976a0d59c5cee16ad545 [diff] |
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: e0c0afd8aa4e ("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>