[NETFILTER]: {ip,nf}_conntrack_netlink: fix expectation notifier unregistration
authorMartin Josefsson <gandalf@wlug.westbo.se>
Sat, 1 Apr 2006 10:24:48 +0000 (02:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Apr 2006 10:24:48 +0000 (02:24 -0800)
This patch fixes expectation notifier unregistration on module unload to
use ip_conntrack_expect_unregister_notifier(). This bug causes a soft
lockup at the first expectation created after a rmmod ; insmod of this
module.

Should go into -stable as well.

Signed-off-by: Martin Josefsson <gandalf@wlug.westbo.se>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_conntrack_netlink.c
net/netfilter/nf_conntrack_netlink.c

index 9b6e19bae90feeb5faa54dcd258df56517d643cb..01bd7cab936762208bbd5b678bc57d981d1cf1ae 100644 (file)
@@ -1658,7 +1658,7 @@ static void __exit ctnetlink_exit(void)
        printk("ctnetlink: unregistering from nfnetlink.\n");
 
 #ifdef CONFIG_IP_NF_CONNTRACK_EVENTS
-       ip_conntrack_unregister_notifier(&ctnl_notifier_exp);
+       ip_conntrack_expect_unregister_notifier(&ctnl_notifier_exp);
        ip_conntrack_unregister_notifier(&ctnl_notifier);
 #endif
 
index 3138ae79fa2142abba217ee4bac12156ee5128ea..bd10eb944b656aa5f91b807eee4a96a5c92fbf3e 100644 (file)
@@ -1687,7 +1687,7 @@ static void __exit ctnetlink_exit(void)
        printk("ctnetlink: unregistering from nfnetlink.\n");
 
 #ifdef CONFIG_NF_CONNTRACK_EVENTS
-       nf_conntrack_unregister_notifier(&ctnl_notifier_exp);
+       nf_conntrack_expect_unregister_notifier(&ctnl_notifier_exp);
        nf_conntrack_unregister_notifier(&ctnl_notifier);
 #endif