summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2019-12-19 17:42:13 +0300
committerMichal Simek <michal.simek@xilinx.com>2020-01-14 11:05:53 +0300
commit935568eecc4b3e9a493b6ba1517c1e066af63aef (patch)
tree634383ff4112722729a1a19823012ced7b643e87 /common
parent53c69dec331ce8a6d0c57f0daed55d82f76d4fe6 (diff)
downloadu-boot-935568eecc4b3e9a493b6ba1517c1e066af63aef.tar.xz
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 <michal.simek@xilinx.com>
Diffstat (limited to 'common')
-rw-r--r--common/spl/spl_atf.c2
1 files changed, 1 insertions, 1 deletions
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)