]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3230aa845e75ab9b3685091d1d0226fad8843a7a
treed7eca56c2068677d5718d3fe403590e51d43c986
parent18f34495026085e75ec5db1a1d72ff62dcd8c7c4
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