netfilter: nf_tables: pass ctx to nf_tables_expr_destroy()
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 2 Jun 2018 21:38:48 +0000 (23:38 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 2 Jun 2018 22:02:09 +0000 (00:02 +0200)
commit3453c92731884bad7c4c3a0667228b964747f3d5
treed7eca56c2068677d5718d3fe403590e51d43c986
parent5e5cbc7b23eaf13e18652c03efbad5be6995de6a
netfilter: nf_tables: pass ctx to nf_tables_expr_destroy()

nft_set_elem_destroy() can be called from call_rcu context. Annotate
netns and table in set object so we can populate the context object.
Moreover, pass context object to nf_tables_set_elem_destroy() from the
commit phase, since it is already available from there.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c