kernel_samsung_a53x/drivers/reset
Krzysztof Kozlowski 96c6df25b4 reset: berlin: fix OF node leak in probe() error path
[ Upstream commit 5f58a88cc91075be38cec69b7cb70aaa4ba69e8b ]

Driver is leaking OF node reference on memory allocation failure.
Acquire the OF node reference after memory allocation to fix this and
keep it simple.

Fixes: aed6f3cadc86 ("reset: berlin: convert to a platform driver")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20240825-reset-cleanup-scoped-v1-1-03f6d834f8c0@linaro.org
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:20 +01:00
..
hisilicon reset: hisilicon: hi6220: fix Wvoid-pointer-to-enum-cast warning 2024-11-18 12:12:16 +01:00
sti Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tegra Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.c reset: Fix crash when freeing non-existent optional resets 2024-11-18 12:11:58 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-a10sr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-ath79.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-axs10x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-berlin.c reset: berlin: fix OF node leak in probe() error path 2024-11-23 23:21:20 +01:00
reset-brcmstb-rescal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-brcmstb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-hsdk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-imx7.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-intel-gw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-lantiq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-lpc18xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-meson-audio-arb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-meson.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-npcm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-oxnas.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-pistachio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-qcom-aoss.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-qcom-pdc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-raspberrypi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-scmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-simple.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-socfpga.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-stm32mp1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-sunxi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-ti-sci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-ti-syscon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-uniphier-glue.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-uniphier.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-zynq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset-zynqmp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00