mlxsw: spectrum: Add missing rollbacks in error path
authorIdo Schimmel <idosch@mellanox.com>
Wed, 17 Aug 2016 14:39:35 +0000 (16:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Aug 2016 23:18:27 +0000 (19:18 -0400)
commit0583272d91f0f4e21f1eb666786286863185be7e
treebb9e50be5423c1126f9258c2e3d963d5308e8cc5
parent0e7df1a290abbcf3ecf697bbbbd4549c9a113db0
mlxsw: spectrum: Add missing rollbacks in error path

While going over the code I noticed we are missing two rollbacks in the
port's creation error path. Add them and adjust the place of one of them
in the port's removal sequence so that both are symmetric.

Fixes: 56ade8fe3fe1 ("mlxsw: spectrum: Add initial support for Spectrum ASIC")
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.c