[PATCH] power-domain: Fix use of uninitialized value in dev_power_domain_ctrl

Simon Glass sjg at chromium.org
Wed Mar 23 20:01:20 CET 2022


On Wed, 23 Mar 2022 at 12:26, Sean Anderson <seanga2 at gmail.com> wrote:
>
> If dev_count_phandle_with_args returns 0 or another error, then pd will never
> have been initialized by power_domain_get_by_index. Avoid comparing against
> pd.dev in this situation.
>
> Fixes: 3e4fcfa4bc ("power-domain: fix hang in endless loop on i.MX8")
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>
>  drivers/power/domain/power-domain-uclass.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list