Message ID | 20231018125605.27299-5-fw@strlen.de (mailing list archive) |
---|---|
State | Accepted |
Commit | f86fb94011aeb3b26337fc22204ca726aeb8bc24 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net,1/4] netfilter: nf_tables: audit log object reset once per table | expand |
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index 7b77ff5985f6..29c651804cb2 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -10345,10 +10345,7 @@ static int __nf_tables_abort(struct net *net, enum nfnl_abort_action action) break; } te = (struct nft_trans_elem *)trans->data; - if (!te->set->ops->abort || - nft_setelem_is_catchall(te->set, &te->elem)) - nft_setelem_remove(net, te->set, &te->elem); - + nft_setelem_remove(net, te->set, &te->elem); if (!nft_setelem_is_catchall(te->set, &te->elem)) atomic_dec(&te->set->nelems);