]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: destroy the set if fail to add transaction
authorLiping Zhang <zlpnobody@gmail.com>
Sat, 29 Oct 2016 14:03:05 +0000 (22:03 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 31 Oct 2016 12:17:29 +0000 (13:17 +0100)
commit6bb3fd181e1731c8b3433f49298c9a2c64a2f23d
treef7ecd0a5e29b63d7b7d2af9b0fb189446994f045
parent312d65d10594510a0721aac177f4424fe91c9be6
netfilter: nf_tables: destroy the set if fail to add transaction

When the memory is exhausted, then we will fail to add the NFT_MSG_NEWSET
transaction. In such case, we should destroy the set before we free it.

Fixes: dc63100f750d ("netfilter: nf_tables: use new transaction infrastructure to handle sets")
Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c