]> git.karo-electronics.de Git - linux-beck.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)
commit40d259045500c6431633f215516c1f94bac8c62f
treed0b7d16e293b57ae02f66044752884eb4b2fed15
parent2c2c8e33e4aa6e46f19ef7bba8e559759a74a4db
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: 6cf3c971dc84cb ("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