]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Add missing rollback
authorIdo Schimmel <idosch@mellanox.com>
Wed, 12 Jul 2017 07:12:52 +0000 (09:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jul 2017 15:15:51 +0000 (08:15 -0700)
commit667ae7a8c16ad9e54381614d56f233e8111f3c15
tree8300bdfaa9fee4bf84a98be92a8d8f2dd864efd5
parentbc88dfcbd8927a89050f92c266c6bb3f79b19742
mlxsw: spectrum_router: Add missing rollback

With this patch the error path of mlxsw_sp_nexthop_init() is symmetric
with mlxsw_sp_nexthop_fini(). Noticed during code review.

Fixes: c35c73dc3e0f ("mlxsw: spectrum_router: Refactor nexthop init routine")
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