linux/drivers/soc/imx
Peng Fan 45395efdf6 soc: imx8m: Fix error handling for clk_prepare_enable()
[ Upstream commit f6ef3d9ff8 ]

imx8m_soc_prepare() directly returns the result of clk_prepare_enable(),
which skips proper cleanup if the clock enable fails. Check the return
value of clk_prepare_enable() and release resources if failure.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/r/202601111406.ZVV3YaiU-lkp@intel.com/
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-03-04 07:19:44 -05:00
..
imx93-src.c soc: imx: imx93-src: No need to set device_driver owner 2023-01-01 13:29:14 +08:00
Kconfig pmdomain: imx: Move Kconfig options to the pmdomain subsystem 2023-10-04 23:40:36 +02:00
Makefile soc: imx: Add SoC device register for i.MX9 2024-12-09 20:31:39 +08:00
soc-imx.c soc: imx: Remove Layerscape check 2022-01-28 17:46:08 +08:00
soc-imx8m.c soc: imx8m: Fix error handling for clk_prepare_enable() 2026-03-04 07:19:44 -05:00
soc-imx9.c soc: imx: Add SoC device register for i.MX9 2024-12-09 20:31:39 +08:00