]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
netfilter: flowtable: initialise extack before use
authorDonald Hunter <donald.hunter@gmail.com>
Tue, 6 Aug 2024 16:16:37 +0000 (17:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2024 15:35:48 +0000 (17:35 +0200)
[ Upstream commit e9767137308daf906496613fd879808a07f006a2 ]

Fix missing initialisation of extack in flow offload.

Fixes: c29f74e0df7a ("netfilter: nf_flow_table: hardware offload support")
Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nf_flow_table_offload.c

index a010b25076ca0673ca28b7208f9b24f1e250e136..3d46372b538e56c82e758d34efec0d69df02e9e9 100644 (file)
@@ -841,8 +841,8 @@ static int nf_flow_offload_tuple(struct nf_flowtable *flowtable,
                                 struct list_head *block_cb_list)
 {
        struct flow_cls_offload cls_flow = {};
+       struct netlink_ext_ack extack = {};
        struct flow_block_cb *block_cb;
-       struct netlink_ext_ack extack;
        __be16 proto = ETH_P_ALL;
        int err, i = 0;