Skip to content

Commit

Permalink
openvswitch: Free tmpl with tmpl_free.
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Joe Stringer <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
joestringer authored and davem330 committed Sep 4, 2016
1 parent e8a3925 commit 7664423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/openvswitch/conntrack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7664423

Please sign in to comment.