]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Fix error path in mlxsw_sp_router_init
authorJiri Pirko <jiri@mellanox.com>
Thu, 8 Sep 2016 06:16:01 +0000 (08:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Sep 2016 23:56:53 +0000 (16:56 -0700)
commit8512848c3cbd6187bd5d26992845cf4c92977beb
treed0b7d16e293b57ae02f66044752884eb4b2fed15
parent73ff61606b021f16028dbfb898f7a27867a15d7f
mlxsw: spectrum_router: Fix error path in mlxsw_sp_router_init

When neigh_init fails, we have to do proper cleanup including
router_fini call.

Fixes: f986158bc93b7c ("mlxsw: spectrum_router: Add private neigh table")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c