sst-linux/drivers/reset
Krzysztof Kozlowski 22a0ee419b reset: k210: fix OF node leak in probe() error path
[ Upstream commit b14e40f5dc7cd0dd7e958010e6ca9ad32ff2ddad ]

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: 5a2308da9f ("riscv: Add Canaan Kendryte K210 reset controller")
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-2-03f6d834f8c0@linaro.org
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-17 15:20:47 +02:00
..
hisilicon
sti
tegra
core.c
Kconfig
Makefile
reset-a10sr.c
reset-ath79.c
reset-axs10x.c
reset-bcm6345.c
reset-berlin.c
reset-brcmstb-rescal.c
reset-brcmstb.c
reset-hsdk.c
reset-imx7.c
reset-intel-gw.c
reset-k210.c
reset-lantiq.c
reset-lpc18xx.c
reset-meson-audio-arb.c
reset-meson.c
reset-microchip-sparx5.c
reset-mpfs.c
reset-npcm.c
reset-oxnas.c
reset-pistachio.c
reset-qcom-aoss.c
reset-qcom-pdc.c
reset-raspberrypi.c
reset-rzg2l-usbphy-ctrl.c
reset-scmi.c
reset-simple.c
reset-socfpga.c
reset-starfive-jh7100.c
reset-sunplus.c
reset-sunxi.c
reset-ti-sci.c
reset-ti-syscon.c
reset-tn48m.c
reset-tps380x.c
reset-uniphier-glue.c
reset-uniphier.c
reset-zynq.c
reset-zynqmp.c