mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
mlxsw: spectrum: Add missing DCB rollback in error path
We correctly execute mlxsw_sp_port_dcb_fini() when port is removed, but
I missed its rollback in the error path of port creation, so add it.
Fixes: f00817df2b
("mlxsw: spectrum: Introduce support for Data Center Bridging (DCB)")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
07d50cae06
commit
4de34eb574
1 changed files with 1 additions and 0 deletions
|
@ -2220,6 +2220,7 @@ static int mlxsw_sp_port_create(struct mlxsw_sp *mlxsw_sp, u8 local_port,
|
|||
err_core_port_init:
|
||||
unregister_netdev(dev);
|
||||
err_register_netdev:
|
||||
mlxsw_sp_port_dcb_fini(mlxsw_sp_port);
|
||||
err_port_dcb_init:
|
||||
err_port_ets_init:
|
||||
err_port_buffers_init:
|
||||
|
|
Loading…
Reference in a new issue