diff options
author | Jiri Pirko <jiri@mellanox.com> | 2016-09-01 10:37:42 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-01 09:44:56 -0700 |
commit | de7d62952b01755f9885bbe945b141d9d4338e55 (patch) | |
tree | f312676e8324967814012f0abf2edd7825cad4fc /drivers/net | |
parent | 7146da31817aa21b19d7a01e95b94686c3f4bd97 (diff) | |
download | linux-de7d62952b01755f9885bbe945b141d9d4338e55.tar.bz2 |
mlxsw: spectrum: Fix error path in mlxsw_sp_module_init
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c index 7291f2c4b0c7..ec1f7d88948f 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c @@ -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; } |