Parcourir la source

ppc: Fix ftd_blob variable init when processing raw blob

Set fdt_blob variable before its value is printed out.

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Marian Balakowicz il y a 17 ans
Parent
commit
de2b3216e6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib_ppc/bootm.c

+ 1 - 1
lib_ppc/bootm.c

@@ -626,9 +626,9 @@ static int boot_get_fdt (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
 				/*
 				/*
 				 * FDT blob
 				 * FDT blob
 				 */
 				 */
+				fdt_blob = (char *)fdt_addr;
 				debug ("*  fdt: raw FDT blob\n");
 				debug ("*  fdt: raw FDT blob\n");
 				printf ("## Flattened Device Tree blob at %08lx\n", fdt_blob);
 				printf ("## Flattened Device Tree blob at %08lx\n", fdt_blob);
-				fdt_blob = (char *)fdt_addr;
 			}
 			}
 			break;
 			break;
 		default:
 		default: