]> 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)
commitcb62b743c9d8b2c9079e9ea1fd7da2adc5dc8874
treebb9e50be5423c1126f9258c2e3d963d5308e8cc5
parent2e77d0d225e8096f605222cbe0591e89149d7cf5
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: a3f159160767 ("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