Skip to contentSkip to conversation

add ndisc_netdev_notifier unregister

PATCH New Dmitry Mishin 1 participant 1 message Nov 3, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 ndisc.c |    1 +
 1 file changed, 1 insertion(+)

---

net/ipv6/ndisc.c +1 -0
index 41a8a5f..73eb8c3 100644
@@ -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