mlxsw: spectrum: Fix error path in mlxsw_sp_module_init
Add forgotten notifier unregister.
Fixes: 99724c18fc
("mlxsw: spectrum: Introduce support for router interfaces")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7146da3181
commit
de7d62952b
|
@ -4553,6 +4553,7 @@ static int __init mlxsw_sp_module_init(void)
|
|||
return 0;
|
||||
|
||||
err_core_driver_register:
|
||||
unregister_inetaddr_notifier(&mlxsw_sp_inetaddr_nb);
|
||||
unregister_netdevice_notifier(&mlxsw_sp_netdevice_nb);
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue