]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd0c053497eab2a0a6f0ac95b1ae3c274c97d8813
treebb9e50be5423c1126f9258c2e3d963d5308e8cc5
parent4a97dd0a9f617e6a1cad42465108b01f03026b5f
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: 91747a7223b2 ("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