|
|
@@ -5847,6 +5847,12 @@ static int __net_init nf_tables_init_net(struct net *net)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+static void __net_exit nf_tables_exit_net(struct net *net)
|
|
|
+{
|
|
|
+ WARN_ON_ONCE(!list_empty(&net->nft.af_info));
|
|
|
+ WARN_ON_ONCE(!list_empty(&net->nft.commit_list));
|
|
|
+}
|
|
|
+
|
|
|
int __nft_release_basechain(struct nft_ctx *ctx)
|
|
|
{
|
|
|
struct nft_rule *rule, *nr;
|
|
|
@@ -5917,6 +5923,7 @@ static void __nft_release_afinfo(struct net *net, struct nft_af_info *afi)
|
|
|
|
|
|
static struct pernet_operations nf_tables_net_ops = {
|
|
|
.init = nf_tables_init_net,
|
|
|
+ .exit = nf_tables_exit_net,
|
|
|
};
|
|
|
|
|
|
static int __init nf_tables_module_init(void)
|