mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 23:51:33 +00:00
image-fdt: boot_get_fdt() return value when no DTB exists
I believe that when no DTB is around we should return 1. This why I fixed such scenarious to not return zero anymore. Else kernel might get NULL pointer to DTB which doesn't exists. Signed-off-by: Noam Camus <noamc@ezchip.com>
This commit is contained in:
parent
8086988fe8
commit
c6150aaf2f
1 changed files with 2 additions and 2 deletions
|
@ -413,11 +413,11 @@ int boot_get_fdt(int flag, int argc, char * const argv[], uint8_t arch,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
debug("## No Flattened Device Tree\n");
|
debug("## No Flattened Device Tree\n");
|
||||||
return 0;
|
goto error;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
debug("## No Flattened Device Tree\n");
|
debug("## No Flattened Device Tree\n");
|
||||||
return 0;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
*of_flat_tree = fdt_blob;
|
*of_flat_tree = fdt_blob;
|
||||||
|
|
Loading…
Reference in a new issue