projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7146da3
)
mlxsw: spectrum: Fix error path in mlxsw_sp_module_init
author
Jiri Pirko
<jiri@mellanox.com>
Thu, 1 Sep 2016 08:37:42 +0000
(10:37 +0200)
committer
David 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
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
index
7291f2c
..
ec1f7d8
100644
(file)
--- 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;
}