add ndisc_netdev_notifier unregister
Subsystems (3)
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.
Signed-off-by Dmitry Mishin <[email protected]>
--- ndisc.c | 1 + 1 file changed, 1 insertion(+)
---
net/ipv6/ndisc.c +1 -0
@@ -1742,6 +1742,7 @@ #endifvoid ndisc_cleanup (void ) { +unregister_netdevice_notifier (&ndisc_netdev_notifier);#ifdef CONFIG_SYSCTL neigh_sysctl_unregister (&nd_tbl.parms);#endif