[PATCH] dm: core: Fix uninitialized return value from dm_scan_fdt_node

Simon Glass sjg at chromium.org
Wed Apr 14 21:38:36 CEST 2021


On Thu, 8 Apr 2021 at 22:15, Sean Anderson <sean.anderson at seco.com> wrote:
>
> If there are no nodes or if all nodes are disabled, this function would
> return err without setting it first. Fix this by initializing err to
> zero.
>
> Fixes: 94f7afdf7e ("dm: core: Ignore disabled devices when binding")
>
> Signed-off-by: Sean Anderson <sean.anderson at seco.com>
> ---
>
>  drivers/core/root.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