]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: always initialize flowtable hook list in transaction
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 1 Jun 2022 15:49:36 +0000 (17:49 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 2 Jun 2022 21:31:11 +0000 (23:31 +0200)
commit2c9e4559773c261900c674a86b8e455911675d71
tree9206ed1680ff79986daa7cb08a99618d117e0935
parentb6d9014a3335194590abdd2a2471ef5147a67645
netfilter: nf_tables: always initialize flowtable hook list in transaction

The hook list is used if nft_trans_flowtable_update(trans) == true. However,
initialize this list for other cases for safety reasons.

Fixes: 78d9f48f7f44 ("netfilter: nf_tables: add devices to existing flowtable")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c