* [PATCH] add ndisc_netdev_notifier unregister
@ 2006-11-03 14:20 Dmitry Mishin
0 siblings, 0 replies; only message in thread
From: Dmitry Mishin @ 2006-11-03 14:20 UTC (permalink / raw)
To: netdev
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>
---
ndisc.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index 41a8a5f..73eb8c3 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -1742,6 +1742,7 @@ #endif
void ndisc_cleanup(void)
{
+ unregister_netdevice_notifier(&ndisc_netdev_notifier);
#ifdef CONFIG_SYSCTL
neigh_sysctl_unregister(&nd_tbl.parms);
#endif
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-03 14:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-03 14:20 [PATCH] add ndisc_netdev_notifier unregister Dmitry Mishin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).