Commit 76644232 authored by Joe Stringer's avatar Joe Stringer Committed by David S. Miller

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.
Signed-off-by: default avatarJoe Stringer <joe@ovn.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e8a3925f
...@@ -1367,7 +1367,7 @@ static void __ovs_ct_free_action(struct ovs_conntrack_info *ct_info) ...@@ -1367,7 +1367,7 @@ static void __ovs_ct_free_action(struct ovs_conntrack_info *ct_info)
if (ct_info->helper) if (ct_info->helper)
module_put(ct_info->helper->me); module_put(ct_info->helper->me);
if (ct_info->ct) if (ct_info->ct)
nf_ct_put(ct_info->ct); nf_ct_tmpl_free(ct_info->ct);
} }
void ovs_ct_init(struct net *net) void ovs_ct_init(struct net *net)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment