Skip to content

Commit

Permalink
[IPV6]: Add ndisc_netdev_notifier unregister.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Mishin authored and David S. Miller committed Nov 5, 2006
1 parent db38c17 commit 36f73d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv6/ndisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1742,6 +1742,7 @@ int __init ndisc_init(struct net_proto_family *ops)

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

0 comments on commit 36f73d0

Please sign in to comment.