netfilter: nfnetlink_queue: validate dependencies to avoid breaking atomicity
authorKen-ichirou MATSUZAWA <chamaken@gmail.com>
Tue, 5 Jan 2016 00:28:05 +0000 (09:28 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 8 Jan 2016 12:25:03 +0000 (13:25 +0100)
commit60d2c7f9ab1cac8b2d44307b660eb7813091dbf0
tree3ee4a51ee26ef1ac362119f9168c98c33a4b609b
parentad6d950393138830edae2efcc500aa69b467b89c
netfilter: nfnetlink_queue: validate dependencies to avoid breaking atomicity

Check that dependencies are fulfilled before updating the queue
instance, otherwise we can leave things in intermediate state on errors
in nfqnl_recv_config().

Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_queue.c