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

Commit 4302f5ee authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso
Browse files

nfnetlink_cttimeout: add rcu_barrier() on module removal



Make sure kfree_rcu() released objects before leaving the module removal
exit path.

Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent ae2d708e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -612,6 +612,7 @@ static void __exit cttimeout_exit(void)
	RCU_INIT_POINTER(nf_ct_timeout_find_get_hook, NULL);
	RCU_INIT_POINTER(nf_ct_timeout_put_hook, NULL);
#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */
	rcu_barrier();
}

module_init(cttimeout_init);