diff options
| author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-10-01 07:53:20 -0400 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-10-02 12:30:54 -0400 |
| commit | 1b1bc49c0fc0501bf0d1366a2a5e5c1f8dcf9cb1 (patch) | |
| tree | aa9308f86af127e4f7daf0311d5bbe8cf7466f55 | |
| parent | 1109a90c01177e8f4a5fd95c5b685ad02f1fe9bb (diff) | |
netfilter: nf_tables: wait for call_rcu completion on module removal
Make sure the objects have been released before the nf_tables modules
is removed.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
| -rw-r--r-- | net/netfilter/nf_tables_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index 19e79f0d9ad2..556a0dfa4abc 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c | |||
| @@ -4163,6 +4163,7 @@ static void __exit nf_tables_module_exit(void) | |||
| 4163 | { | 4163 | { |
| 4164 | unregister_pernet_subsys(&nf_tables_net_ops); | 4164 | unregister_pernet_subsys(&nf_tables_net_ops); |
| 4165 | nfnetlink_subsys_unregister(&nf_tables_subsys); | 4165 | nfnetlink_subsys_unregister(&nf_tables_subsys); |
| 4166 | rcu_barrier(); | ||
| 4166 | nf_tables_core_module_exit(); | 4167 | nf_tables_core_module_exit(); |
| 4167 | kfree(info); | 4168 | kfree(info); |
| 4168 | } | 4169 | } |
