diff options
author | Noam Camus <noamc@ezchip.com> | 2014-10-22 17:17:49 +0300 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-11-07 16:27:05 -0500 |
commit | c6150aaf2f2745141a7c2ceded58d7efbfeace7d (patch) | |
tree | 56018dece530adf195599e574cdaa23fd5f96c7f /common/image-fdt.c | |
parent | 8086988fe87c4d66b64f24a14e66f82dac2ca599 (diff) | |
download | u-boot-imx-c6150aaf2f2745141a7c2ceded58d7efbfeace7d.zip u-boot-imx-c6150aaf2f2745141a7c2ceded58d7efbfeace7d.tar.gz u-boot-imx-c6150aaf2f2745141a7c2ceded58d7efbfeace7d.tar.bz2 |
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>
Diffstat (limited to 'common/image-fdt.c')
-rw-r--r-- | common/image-fdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/image-fdt.c b/common/image-fdt.c index a2342fa..a39ae1b 100644 --- a/common/image-fdt.c +++ b/common/image-fdt.c @@ -413,11 +413,11 @@ int boot_get_fdt(int flag, int argc, char * const argv[], uint8_t arch, } } else { debug("## No Flattened Device Tree\n"); - return 0; + goto error; } } else { debug("## No Flattened Device Tree\n"); - return 0; + goto error; } *of_flat_tree = fdt_blob; |