]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: fix flush after rule deletion in the same batch
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 15 Feb 2019 11:50:24 +0000 (12:50 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 15 Feb 2019 14:32:32 +0000 (15:32 +0100)
commit991fc2f172b576b68ab4995961541e4802069167
tree2a46afb0992d641ec31b74b905ce31da81bf2dd4
parente2ef7297b47c85935ddf2ca52e867d13b528e03b
netfilter: nf_tables: fix flush after rule deletion in the same batch

Flush after rule deletion bogusly hits -ENOENT. Skip rules that have
been already from nft_delrule_by_chain() which is always called from the
flush path.

Fixes: 95a19ff30f61 ("netfilter: nf_tables: fix missing rules flushing per table")
Reported-by: Phil Sutter <phil@nwl.cc>
Acked-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c