commonlib/dt: Fix recursive call for _dt_find_node

Correctly call _dt_find_node recursively to avoid incorrect
re-initialization of addrcp and sizecp.

BUG=none
TEST=Test coverage can pass.

Change-Id: Icad075485f0a8a22138f1a0e1885405749ae5253
Signed-off-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86029
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
This commit is contained in:
Kapil Porwal 2025-01-17 12:30:15 +05:30 committed by Julius Werner
commit f4bb16d5c2

View file

@ -1074,7 +1074,7 @@ static struct device_tree_node *_dt_find_node(struct device_tree_node *parent,
list_insert_after(&found->list_node, &parent->children);
}
return dt_find_node(found, path + 1, addrcp, sizecp, create);
return _dt_find_node(found, path + 1, addrcp, sizecp, create);
}
/*