From: Dmitry Mishin Date: Sat, 4 Nov 2006 00:08:19 +0000 (-0800) Subject: [IPV6]: Add ndisc_netdev_notifier unregister. X-Git-Tag: v3.12-rc1~31920^2~20^2~197^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36f73d0c3b7efa72cd8b89f2d429ff39bc12f15c;p=kernel%2Fkernel-generic.git [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 Signed-off-by: David S. Miller --- diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 41a8a5f..73eb8c3 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c @@ -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