Skip to content

soc: rockchip: fix probe error path in power-domain driver

Heiko Stuebner linux-rockchip lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2soc: rockchip: power-domain: use pm_genpd_remove in error cleanupdrivers/soc/rockchip/pm_domains.c+10 -10 replies
2/2soc: rockchip: power-domain: Handle errors from of_genpd_add_provider_onecelldrivers/soc/rockchip/pm_domains.c+5 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] soc: rockchip: fix probe error path in power-domain driver

A recent change to generic power-domains revealed that the rockchip driver cannot safely fail it's probe. Also pm_genpd_init creates a situation where a probe error leads to the generic power-domains accessing already freed data.

The reason for us finding this issue (holes in power-domain lists), will get fixed in the generic power-domains, but the fixes below will only work after the newly added genpd-removal code got merged.

Therefore I hope to remember to send the two patches below as fix after 4.9-rc1.

Alternatively Rafael could include them into his branch directly.

Heiko Stuebner (1):
soc: rockchip: power-domain: use pm_genpd_remove in error cleanup

Tomeu Vizoso (1):
soc: rockchip: power-domain: Handle errors from
of_genpd_add_provider_onecell

 drivers/soc/rockchip/pm_domains.c | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)
Signature · 1 line
2.8.1