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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:36:16 +0000 (18:36 +0200)
commit77b68c59f6c938424bf29ed0dc5d27732a635d30
tree039456be911c3c3dfa8ead0deca1ec56a8f79942
parentea26bf5eca1459b5a7824997d7823409ce38214e
netfilter: nf_tables: always initialize flowtable hook list in transaction

[ Upstream commit 2c9e4559773c261900c674a86b8e455911675d71 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nf_tables_api.c