netfilter: nf_tables_offload: remove reference to flow rule from deletion path
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 14 Nov 2019 13:17:19 +0000 (14:17 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 15 Nov 2019 22:44:50 +0000 (23:44 +0100)
The cookie is sufficient to delete the rule from the hardware.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_offload.c

index 741045eb530eebb4500a7cfe10c1e93a56cc427a..528886bb34813af48f9a3a44702ae7b3743d51bb 100644 (file)
@@ -437,8 +437,7 @@ int nft_flow_rule_offload_commit(struct net *net)
 
                        err = nft_flow_offload_rule(trans->ctx.chain,
                                                    nft_trans_rule(trans),
-                                                   nft_trans_flow_rule(trans),
-                                                   FLOW_CLS_DESTROY);
+                                                   NULL, FLOW_CLS_DESTROY);
                        break;
                }