linux-stable/drivers/soc
Christophe JAILLET b18490138d PM: AVS: qcom-cpr: Fix an error handling path in cpr_probe()
[ Upstream commit 6049aae523 ]

If an error occurs after a successful pm_genpd_init() call, it should be
undone by a corresponding pm_genpd_remove().

Add the missing call in the error handling path, as already done in the
remove function.

Fixes: bf6910abf5 ("power: avs: Add support for CPR (Core Power Reduction)")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/0f520597dbad89ab99c217c8986912fa53eaf5f9.1671293108.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-01 08:23:11 +01:00
..
actions
amlogic soc: amlogic: Fix refcount leak in meson-secure-pwrc.c 2022-08-21 15:15:32 +02:00
aspeed soc: aspeed: lpc-ctrl: Block error printing on probe defer cases 2022-02-23 12:01:06 +01:00
atmel
bcm soc: brcmstb: pm-arm: Fix refcount leak and __iomem leak bugs 2022-09-15 11:32:04 +02:00
dove
fsl soc: fsl: select FSL_GUTS driver for DPIO 2022-09-20 12:38:33 +02:00
gemini
imx
ixp4xx soc: ixp4xx/npe: Fix unused match warning 2022-07-21 21:20:17 +02:00
kendryte
lantiq
mediatek
qcom PM: AVS: qcom-cpr: Fix an error handling path in cpr_probe() 2023-02-01 08:23:11 +01:00
renesas soc: renesas: r8a779a0-sysc: Fix A2DP1 and A2CV[2357] PDR values 2022-08-21 15:15:32 +02:00
rockchip soc: rockchip: Fix refcount leak in rockchip_grf_init 2022-06-14 18:32:33 +02:00
samsung
sifive
sunxi soc: sunxi: sram: Fix debugfs info for A64 SRAM C 2022-10-05 10:38:41 +02:00
tegra soc/tegra: fuse: Drop Kconfig dependency on TEGRA20_APB_DMA 2022-10-26 13:25:29 +02:00
ti soc: ti: smartreflex: Fix PM disable depth imbalance in omap_sr_probe 2023-01-14 10:15:11 +01:00
ux500 ARM: ux500: do not directly dereference __iomem 2023-01-14 10:16:30 +01:00
versatile
xilinx
zte
Kconfig
Makefile