diff options
author | Anatolij Gustschin <agust@denx.de> | 2008-08-29 19:04:45 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-09-06 22:17:32 (GMT) |
commit | 8e02494e8f86c8f2d7324b5eb9e75271104a01ef (patch) | |
tree | 511abb597d72daf34ffddce2ff0326fc52adf958 /common/image.c | |
parent | cc347801add2689b1ee54d21f62bc14ecf6e1dd8 (diff) | |
download | u-boot-fsl-qoriq-8e02494e8f86c8f2d7324b5eb9e75271104a01ef.tar.xz |
Prevent crash if random DTB address is passed to bootm
This patch adds bootm_start() return value check. If
error status is returned, we do not proceed further to
prevent board reset or crash as we still can recover
at this point.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'common/image.c')
-rw-r--r-- | common/image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image.c b/common/image.c index 55c4cce..0acdcf1 100644 --- a/common/image.c +++ b/common/image.c @@ -1516,7 +1516,7 @@ int boot_get_fdt (int flag, int argc, char *argv[], bootm_headers_t *images, } break; default: - fdt_error ("Did not find a cmdline Flattened Device Tree"); + puts ("ERROR: Did not find a cmdline Flattened Device Tree\n"); goto error; } |