diff options
author | Dmitry Mishin <dim@openvz.org> | 2006-11-03 19:08:19 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-11-05 17:11:33 -0500 |
commit | 36f73d0c3b7efa72cd8b89f2d429ff39bc12f15c (patch) | |
tree | d0d16b977438055ae2e6f26884b36a8604619766 | |
parent | db38c179a759a9c4722525e8c9f09ac80e372377 (diff) |
[IPV6]: Add ndisc_netdev_notifier unregister.
If inet6_init() fails later than ndisc_init() call, or IPv6 module is
unloaded, ndisc_netdev_notifier call remains in the list and will follows in
oops later.
Signed-off-by: Dmitry Mishin <dim@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv6/ndisc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 41a8a5f06602..73eb8c33e9f0 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c | |||
@@ -1742,6 +1742,7 @@ int __init ndisc_init(struct net_proto_family *ops) | |||
1742 | 1742 | ||
1743 | void ndisc_cleanup(void) | 1743 | void ndisc_cleanup(void) |
1744 | { | 1744 | { |
1745 | unregister_netdevice_notifier(&ndisc_netdev_notifier); | ||
1745 | #ifdef CONFIG_SYSCTL | 1746 | #ifdef CONFIG_SYSCTL |
1746 | neigh_sysctl_unregister(&nd_tbl.parms); | 1747 | neigh_sysctl_unregister(&nd_tbl.parms); |
1747 | #endif | 1748 | #endif |