OSDN Git Service

netfilter: nft_rbtree: check for next generation when deactivating elements
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 20 Jun 2016 22:12:15 +0000 (00:12 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 24 Jun 2016 09:03:26 +0000 (11:03 +0200)
commit4e5001651f5e488eac378ebabc5bde2a8f1ea861
tree129316ac4883cfe54d9331a41e093910f5f6c6d3
parent37a9cc52552579f22e18cca401cfc4351b6cbc72
netfilter: nft_rbtree: check for next generation when deactivating elements

set->ops->deactivate() is invoked from nft_del_setelem() that happens
from the transaction path, so we have to check if the object is active
in the next generation, not the current.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_rbtree.c