nf_conntrack_netlink : fix expectation notifier unregistration
Subsystems (2)
PATCH 1/1 nf_conntrack_netlink : fix expectation notifier unregistration
This patch fixes expectation notifier unregistration on module unload to use nf_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 <[email protected]>
net/netfilter/nf_conntrack_netlink.c +1 -1
@@ -1641,7 +1641,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
Signature · 1 line
/Martin