]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: sched: call tcf_ct_params_free to free params in tcf_ct_init
authorXin Long <lucien.xin@gmail.com>
Sun, 6 Nov 2022 20:34:16 +0000 (15:34 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jan 2024 16:10:33 +0000 (17:10 +0100)
commite681f711e9e8ee0d70151711364cbff5394a8660
tree1a9917bc4d0180e47fb28a3a2e80ae57f0cb6f9d
parentd49bf9c1ceb3bde36c91a01dcc2c54cf1bbe3c7a
net: sched: call tcf_ct_params_free to free params in tcf_ct_init

[ Upstream commit 1913894100ca53205f2d56091cb34b8eba1de217 ]

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: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Stable-dep-of: 125f1c7f26ff ("net/sched: act_ct: Take per-cb reference to tcf_ct_flow_table")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sched/act_ct.c