Skip to content
Commit e681f711 authored by Xin Long's avatar Xin Long Committed by Greg Kroah-Hartman
Browse files

net: sched: call tcf_ct_params_free to free params in tcf_ct_init

[ Upstream commit 19138941

 ]

This patch is to make the err path simple by calling tcf_ct_params_free(),
so that it won't cause problems when more members are added into param and
need freeing on the err path.

Acked-by: default avatarMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Stable-dep-of: 125f1c7f

 ("net/sched: act_ct: Take per-cb reference to tcf_ct_flow_table")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d49bf9c1
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