Skip to content
Snippets Groups Projects
Commit c74e3295 authored by Hannes Schmelzer's avatar Hannes Schmelzer Committed by Bin Meng
Browse files

x86/bootm: fix error handling in boot_prep_linux(...)


Once we get a zero pointer from load_zimage(...) we must bunch out
instead of continue boot.

Signed-off-by: default avatarHannes Schmelzer <hannes.schmelzer@br-automation.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 97d20f69
No related branches found
No related tags found
No related merge requests found
......@@ -116,6 +116,10 @@ static int boot_prep_linux(bootm_headers_t *images)
char *base_ptr;
base_ptr = (char *)load_zimage(data, len, &load_address);
if (!base_ptr) {
puts("## Kernel loading failed ...\n");
goto error;
}
images->os.load = load_address;
cmd_line_dest = base_ptr + COMMAND_LINE_OFFSET;
images->ep = (ulong)base_ptr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment