]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Nullify nexthop's neigh pointer
authorIdo Schimmel <idosch@mellanox.com>
Wed, 8 Feb 2017 10:16:28 +0000 (11:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Feb 2017 20:25:15 +0000 (15:25 -0500)
commit5a841aa19f308f3a72851835a4411fc0f5814bcf
tree621668a6300c1f08d59559ed25c52b833114fe4a
parentdde32a1ce7d89958217c019dc149585b05899732
mlxsw: spectrum_router: Nullify nexthop's neigh pointer

When we invalidate a nexthop we should also invalidate its neighbour
entry pointer as it might be destroyed later on. This makes the nexthop
de-init function symmetric with its init and also ensures nobody will
try to access the neighbour entry.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c