Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36f73d0c authored by Dmitry Mishin's avatar Dmitry Mishin Committed by David S. Miller
Browse files

[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: default avatarDmitry Mishin <dim@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent db38c179
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1742,6 +1742,7 @@ int __init ndisc_init(struct net_proto_family *ops)


void ndisc_cleanup(void)
void ndisc_cleanup(void)
{
{
	unregister_netdevice_notifier(&ndisc_netdev_notifier);
#ifdef CONFIG_SYSCTL
#ifdef CONFIG_SYSCTL
	neigh_sysctl_unregister(&nd_tbl.parms);
	neigh_sysctl_unregister(&nd_tbl.parms);
#endif
#endif