Message ID | 20240529145700.19721-4-bethany.jamison@canonical.com |
---|---|
State | New |
Headers | show |
Series | [SRU,F,v2,1/3] netfilter: Cleanup nft_net->module_list from nf_tables_exit_net() | expand |
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index 53ee2cd6c878f..23638531aa089 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -8409,7 +8409,8 @@ static void __net_exit nf_tables_exit_net(struct net *net) gc_seq = nft_gc_seq_begin(nft_net); - if (!list_empty(&nft_net->commit_list)) + if (!list_empty(&nft_net->commit_list) || + !list_empty(&nft_net->module_list)) __nf_tables_abort(net, NFNL_ABORT_NONE); __nft_release_tables(net);