From 8e02494e8f86c8f2d7324b5eb9e75271104a01ef Mon Sep 17 00:00:00 2001 From: Anatolij Gustschin Date: Fri, 29 Aug 2008 21:04:45 +0200 Subject: 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 --- common/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/image.c') 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; } -- cgit v1.1