mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
mlxsw: spectrum: Fix error path in mlxsw_sp_module_init()
[ Upstream commit28fe79000e] In case of sp2 pci driver registration fail, fix the error path to start with sp1 pci driver unregister. Fixes:c3ab435466("mlxsw: spectrum: Extend to support Spectrum-2 ASIC") Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f186fb5ccf
commit
3c46905fb1
@@ -5032,7 +5032,7 @@ static int __init mlxsw_sp_module_init(void)
|
||||
return 0;
|
||||
|
||||
err_sp2_pci_driver_register:
|
||||
mlxsw_pci_driver_unregister(&mlxsw_sp2_pci_driver);
|
||||
mlxsw_pci_driver_unregister(&mlxsw_sp1_pci_driver);
|
||||
err_sp1_pci_driver_register:
|
||||
mlxsw_core_driver_unregister(&mlxsw_sp2_driver);
|
||||
err_sp2_core_driver_register:
|
||||
|
||||
Reference in New Issue
Block a user