Skip to contentSkip to conversation

openvswitch: Free tmpl with tmpl_free.

PATCH Applied Joe Stringer 2 participants 2 messages Sep 2, 2016 – Sep 4, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openvswitch: Free tmpl with tmpl_free.

When an error occurs during conntrack template creation as part of actions validation, we need to free the template. Previously we've been using nf_ct_put() to do this, but nf_ct_tmpl_free() is more appropriate.

---
 net/openvswitch/conntrack.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/openvswitch/conntrack.c +1 -1
index e054a748ff25..31045ef44a82 100644
@@ -1367,7 +1367,7 @@ static void __ovs_ct_free_action(struct ovs_conntrack_info *ct_info)
 	if (ct_info->helper)
 		module_put(ct_info->helper->me);
 	if (ct_info->ct)
-		nf_ct_put(ct_info->ct);
+		nf_ct_tmpl_free(ct_info->ct);
 }
 
 void ovs_ct_init(struct net *net)
Signature · 1 line
2.9.3
maintainer Applied
#1 lore raw

From: Joe Stringer <[email protected]>
Date: Thu, 1 Sep 2016 18:01:47 -0700

Quoted 5 lines

When an error occurs during conntrack template creation as part of actions validation, we need to free the template. Previously we've been using nf_ct_put() to do this, but nf_ct_tmpl_free() is more appropriate.

Applied, thanks.