netfilter: nf_tables: bogus EBUSY in helper removal from transaction
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 14 Mar 2019 09:50:20 +0000 (10:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2019 07:58:51 +0000 (09:58 +0200)
commitffc1d85e8c5f79d54597f3be294a287f5ceaa7a4
tree95b6938b12401f584e82a57c45ecc400c5578e95
parente313d5da057b2335b6f60aa70e9873a4f0f59d45
netfilter: nf_tables: bogus EBUSY in helper removal from transaction

[ Upstream commit 8ffcd32f64633926163cdd07a7d295c500a947d1 ]

Proper use counter updates when activating and deactivating the object,
otherwise, this hits bogus EBUSY error.

Fixes: cd5125d8f518 ("netfilter: nf_tables: split set destruction in deactivate and destroy phase")
Reported-by: Laura Garcia <nevola@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nft_objref.c