Skip to content

Commit

Permalink
nfnetlink_cttimeout: add rcu_barrier() on module removal
Browse files Browse the repository at this point in the history
Make sure kfree_rcu() released objects before leaving the module removal
exit path.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Pablo Neira Ayuso committed Oct 12, 2015
1 parent ae2d708 commit 4302f5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/netfilter/nfnetlink_cttimeout.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4302f5e

Please sign in to comment.