]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: imx: imx8: Fix an error handling path in clk_imx_acm_attach_pm_domains()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 14 Sep 2023 20:31:02 +0000 (22:31 +0200)
committerAbel Vesa <abel.vesa@linaro.org>
Wed, 4 Oct 2023 08:13:58 +0000 (11:13 +0300)
commit156624e2cf815ce98fad5a24f04370f4459ae6f4
tree0c084dca2fb6537f650f140fb1ebfb0d2053e6cb
parent317e69c49b4ceef8aebb47d771498ccb3571bdf9
clk: imx: imx8: Fix an error handling path in clk_imx_acm_attach_pm_domains()

If a dev_pm_domain_attach_by_id() call fails, previously allocated
resources need to be released.

Fixes: d3a0946d7ac9 ("clk: imx: imx8: add audio clock mux driver")
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
drivers/clk/imx/clk-imx8-acm.c