]> git.dujemihanovic.xyz Git - linux.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)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 14 Aug 2024 21:37:16 +0000 (23:37 +0200)
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>
net/netfilter/nf_flow_table_offload.c

index ff1a4e36c2b5dcf9d12d0f65ff98277f56a17beb..e06bc36f49fe74e89c4074eb8b32409bc7035e8c 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;