mlxsw: spectrum: Fix error path in mlxsw_sp_module_init
authorJiri Pirko <jiri@mellanox.com>
Thu, 1 Sep 2016 08:37:42 +0000 (10:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Sep 2016 16:44:56 +0000 (09:44 -0700)
Add forgotten notifier unregister.

Fixes: 99724c18fc66 ("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>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c

index 7291f2c..ec1f7d8 100644 (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;
 }