From: Michal Simek Date: Thu, 19 Dec 2019 14:42:13 +0000 (+0100) Subject: spl: atf: Add missing ndepth initialization X-Git-Tag: v2025.01-rc5-pxa1908~2605^2~43 X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=935568eecc4b3e9a493b6ba1517c1e066af63aef;p=u-boot.git spl: atf: Add missing ndepth initialization ndepth needs to be initialized before it is used in fdt_next_node(). Uninitialized value is causing that node is found and depth increase but won't pass condition below because initial state wasn't setup. Signed-off-by: Michal Simek --- diff --git a/common/spl/spl_atf.c b/common/spl/spl_atf.c index df29274207..24fd35ed85 100644 --- a/common/spl/spl_atf.c +++ b/common/spl/spl_atf.c @@ -112,7 +112,7 @@ static void bl31_entry(uintptr_t bl31_entry, uintptr_t bl32_entry, static int spl_fit_images_find(void *blob, int os) { - int parent, node, ndepth; + int parent, node, ndepth = 0; const void *data; if (!blob)