mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-29 08:00:26 +09:00
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>
This commit is contained in:
parent
53c69dec33
commit
935568eecc
@ -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)
|
static int spl_fit_images_find(void *blob, int os)
|
||||||
{
|
{
|
||||||
int parent, node, ndepth;
|
int parent, node, ndepth = 0;
|
||||||
const void *data;
|
const void *data;
|
||||||
|
|
||||||
if (!blob)
|
if (!blob)
|
||||||
|
Loading…
Reference in New Issue
Block a user