Skip to content
Snippets Groups Projects
Commit 958fc48a authored by Marian Balakowicz's avatar Marian Balakowicz Committed by Wolfgang Denk
Browse files

[new uImage] Fix FDT header verification in PPC do_boot_linux() routine

parent 15158971
No related branches found
No related tags found
No related merge requests found
...@@ -265,9 +265,9 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag, ...@@ -265,9 +265,9 @@ do_bootm_linux (cmd_tbl_t *cmdtp, int flag,
of_flat_tree = (char *) simple_strtoul(argv[3], NULL, 16); of_flat_tree = (char *) simple_strtoul(argv[3], NULL, 16);
hdr = (image_header_t *)of_flat_tree; hdr = (image_header_t *)of_flat_tree;
#if defined(CONFIG_OF_FLAT_TREE) #if defined(CONFIG_OF_FLAT_TREE)
if (*((ulong *)(of_flat_tree + image_get_header_size ())) != OF_DT_HEADER) { if (*((ulong *)(of_flat_tree)) == OF_DT_HEADER) {
#elif defined(CONFIG_OF_LIBFDT) #elif defined(CONFIG_OF_LIBFDT)
if (fdt_check_header (of_flat_tree + image_get_header_size ()) != 0) { if (fdt_check_header (of_flat_tree) == 0) {
#endif #endif
#ifndef CFG_NO_FLASH #ifndef CFG_NO_FLASH
if (addr2info((ulong)of_flat_tree) != NULL) if (addr2info((ulong)of_flat_tree) != NULL)
......
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