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:
Jiri Pirko 2016-09-01 10:37:42 +02:00 committed by David S. Miller
parent 7146da3181
commit de7d62952b
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}