netfilter: nf_tables: revert do not remove elements if set backend implements .abort
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 18 Oct 2023 11:18:39 +0000 (13:18 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 18 Oct 2023 11:47:32 +0000 (13:47 +0200)
commitf86fb94011aeb3b26337fc22204ca726aeb8bc24
tree139c133295a3681d8e6531926f2246e687ee3590
parentd111692a59c1470ae530cbb39bcf0346c950ecc7
netfilter: nf_tables: revert do not remove elements if set backend implements .abort

nf_tables_abort_release() path calls nft_set_elem_destroy() for
NFT_MSG_NEWSETELEM which releases the element, however, a reference to
the element still remains in the working copy.

Fixes: ebd032fa8818 ("netfilter: nf_tables: do not remove elements if set backend implements .abort")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nf_tables_api.c