[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>

authored by Dmitry Mishin and committed by David S. Miller 36f73d0c db38c179

+1
+1
net/ipv6/ndisc.c
··· 1742 1742 1743 1743 void ndisc_cleanup(void) 1744 1744 { 1745 + unregister_netdevice_notifier(&ndisc_netdev_notifier); 1745 1746 #ifdef CONFIG_SYSCTL 1746 1747 neigh_sysctl_unregister(&nd_tbl.parms); 1747 1748 #endif