netfilter: nf_tables: remove check against removal of inactive objects
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 15 Dec 2015 18:40:50 +0000 (19:40 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 28 Dec 2015 17:37:20 +0000 (18:37 +0100)
commitf4c756b4ea7d2921391febcaed4ce2511872a0e1
treedf6e0cd3ac514923ff95062995be61beb746898b
parent5ebe0b0eec9d6f703b137f9b938c52f7b91dd9d6
netfilter: nf_tables: remove check against removal of inactive objects

The following sequence inside a batch, although not very useful, is
valid:

 add table foo
 ...
 delete table foo

This may be generated by some robot while applying some incremental
upgrade, so remove the defensive checks against this.

This patch keeps the check on the get/dump path by now, we have to
replace the inactive flag by introducing object generations.

Reported-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c
This page took 0.02756 seconds and 5 git commands to generate.