android_kernel_xiaomi_sm8450/drivers/clk/imx
Peng Fan 8d03f7c580 clk: imx: imx8mq: correct error handling path
[ Upstream commit 577ad169966e6e75b10e004389a3f79813e84b5d ]

Avoid memory leak in error handling path. It does not make
much sense for the SoC without clk driver, to make program behavior
correct, let's fix it.

Fixes: b80522040c ("clk: imx: Add clock driver for i.MX8MQ CCM")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/r/202309240551.e46NllPa-lkp@intel.com/
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20231001122618.194498-1-peng.fan@oss.nxp.com
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 11:06:47 +01:00
..
clk-busy.c clk: imx: Explicitly include bits.h 2020-08-22 20:36:57 +08:00
clk-composite-7ulp.c clk: imx: Explicitly include bits.h 2020-08-22 20:36:57 +08:00
clk-composite-8m.c clk: imx: composite-8m: fix clock pauses when set_rate would be a no-op 2023-09-19 12:20:14 +02:00
clk-cpu.c clk: imx: Support building i.MX common clock driver as module 2020-08-22 12:38:20 +08:00
clk-divider-gate.c clk: imx: Rename the imx_clk_divider_gate to imply it's clk_hw based 2019-12-11 19:19:59 +08:00
clk-fixup-div.c clk: imx: drop redundant initialization 2020-02-17 14:32:32 +08:00
clk-fixup-mux.c clk: imx: Explicitly include bits.h 2020-08-22 20:36:57 +08:00
clk-frac-pll.c clk: imx: Support building i.MX common clock driver as module 2020-08-22 12:38:20 +08:00
clk-gate2.c clk: imx: gate2: Fix a few typos 2020-09-13 09:21:29 +08:00
clk-gate-exclusive.c This round of clk driver and framework updates is heavy on the driver update 2019-07-17 10:07:48 -07:00
clk-imx1.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00
clk-imx5.c clk: imx: Fix reparenting of UARTs not associated with stdout 2021-05-14 09:50:25 +02:00
clk-imx6q.c clk: imx6q: fix uart earlycon unwork 2021-08-26 08:35:53 -04:00
clk-imx6sl.c clk: imx: Fix reparenting of UARTs not associated with stdout 2021-05-14 09:50:25 +02:00
clk-imx6sll.c clk: imx: Fix reparenting of UARTs not associated with stdout 2021-05-14 09:50:25 +02:00
clk-imx6sx.c clk: imx: imx6sx: remove the SET_RATE_PARENT flag for QSPI clocks 2022-10-05 10:38:42 +02:00
clk-imx6ul.c clk: imx: imx6ul: Move csi_sel mux to correct base register 2021-11-26 10:39:09 +01:00
clk-imx7d.c clk: imx7d: Remove audio_mclk_root_clk 2022-04-08 14:40:25 +02:00
clk-imx7ulp.c clk: imx: Fix reparenting of UARTs not associated with stdout 2021-05-14 09:50:25 +02:00
clk-imx8mm.c clk: imx8m: fix clock tree update of TF-A managed clocks 2021-09-18 13:40:15 +02:00
clk-imx8mn.c clk: imx: clk-imx8mn: fix memory leak in imx8mn_clocks_probe 2023-07-27 08:43:53 +02:00
clk-imx8mp.c clk: imx8mp: fix sai4 clock 2023-09-19 12:20:14 +02:00
clk-imx8mq.c clk: imx: imx8mq: correct error handling path 2023-11-20 11:06:47 +01:00
clk-imx8qxp-lpcg.c clk: imx: use module_platform_driver 2021-12-14 11:32:41 +01:00
clk-imx8qxp-lpcg.h clk: imx: add imx8qxp lpcg driver 2018-12-14 13:01:14 -08:00
clk-imx8qxp.c clk: imx: use module_platform_driver 2021-12-14 11:32:41 +01:00
clk-imx25.c clk: imx: Fix reparenting of UARTs not associated with stdout 2021-05-14 09:50:25 +02:00
clk-imx27.c clk: imx: Fix reparenting of UARTs not associated with stdout 2021-05-14 09:50:25 +02:00
clk-imx31.c clk: imx: imx31: Remove mx31_clocks_init() 2020-09-22 14:08:19 +08:00
clk-imx35.c clk: imx: Fix reparenting of UARTs not associated with stdout 2021-05-14 09:50:25 +02:00
clk-lpcg-scu.c clk: imx: Explicitly include bits.h 2020-08-22 20:36:57 +08:00
clk-pfd.c clk: imx: Fix and update kerneldoc 2020-09-07 11:08:50 +08:00
clk-pfdv2.c clk: imx: Fix and update kerneldoc 2020-09-07 11:08:50 +08:00
clk-pll14xx.c Revert "clk: imx: pll14xx: dynamically configure PLL for 393216000/361267200Hz" 2023-10-10 21:53:36 +02:00
clk-pllv1.c clk: imx: Explicitly include bits.h 2020-08-22 20:36:57 +08:00
clk-pllv2.c clk: imx: pllv2: Switch to clk_hw based API 2019-12-11 19:19:44 +08:00
clk-pllv3.c clk: imx: Fix and update kerneldoc 2020-09-07 11:08:50 +08:00
clk-pllv4.c clk: imx: Explicitly include bits.h 2020-08-22 20:36:57 +08:00
clk-scu.c clk: imx: Align imx sc clock parent msg structs to 4 2020-03-25 18:46:05 -07:00
clk-scu.h clk: imx: scu: add set parent support 2019-02-21 12:41:16 -08:00
clk-sscg-pll.c clk: imx: Support building i.MX common clock driver as module 2020-08-22 12:38:20 +08:00
clk-vf610.c clk: imx: vf610: Add CRC clock 2020-08-23 10:08:35 +08:00
clk.c clk: imx: avoid memory leak 2023-03-11 16:39:42 +01:00
clk.h clk: imx8m: fix clock tree update of TF-A managed clocks 2021-09-18 13:40:15 +02:00
Kconfig clk: imx: Select MXC_CLK for CLK_IMX8QXP 2023-11-20 11:06:46 +01:00
Makefile clk: imx: imx21: Remove clock driver 2020-09-22 14:09:19 +08:00