]> git.itanic.dy.fi Git - linux-stable/commit
clk: mediatek: mt7622-apmixedsys: Fix an error handling path in clk_mt8135_apmixed_pr...
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 7 Jan 2024 08:29:28 +0000 (09:29 +0100)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:17:09 +0000 (18:17 -0400)
commitfa761ce7a1d15cca1a306b3635f81a22b15fee5b
tree0cf1a80d1b73e5c6ed053cc6ba2ed2275c1b9117
parent8fbf6f0431af2d8b7ddf47d00ab2579d370ea0c0
clk: mediatek: mt7622-apmixedsys: Fix an error handling path in clk_mt8135_apmixed_probe()

[ Upstream commit a32e88f2b20259f5fe4f8eed598bbc85dc4879ed ]

'clk_data' is allocated with mtk_devm_alloc_clk_data(). So calling
mtk_free_clk_data() explicitly in the remove function would lead to a
double-free.

Remove the redundant call.

Fixes: c50e2ea6507b ("clk: mediatek: mt7622-apmixedsys: Add .remove() callback for module build")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/2c553c2a5077757e4f7af0bb895acc43881cf62c.1704616152.git.christophe.jaillet@wanadoo.fr
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/mediatek/clk-mt7622-apmixedsys.c