linux-yocto/drivers/pmdomain
Ulf Hansson 33cd650d38 pmdomain: core: Reset genpd->states to avoid freeing invalid data
[ Upstream commit 99012014c9 ]

If genpd_alloc_data() allocates data for the default power-states for the
genpd, let's make sure to also reset the pointer in the error path. This
makes sure a genpd provider driver doesn't end up trying to free the data
again, but using an invalid pointer.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Link: https://lore.kernel.org/r/20250402120613.1116711-1-ulf.hansson@linaro.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-27 11:11:27 +01:00
..
actions
amlogic
apple
arm
bcm
imx
mediatek
qcom
renesas pmdomain: renesas: rcar: Remove obsolete nullify checks 2025-05-29 11:03:21 +02:00
rockchip
samsung
st
starfive
sunxi
tegra
ti
xilinx
core.c pmdomain: core: Reset genpd->states to avoid freeing invalid data 2025-06-27 11:11:27 +01:00
governor.c
Kconfig
Makefile