[U-Boot-Users] [PATCH 1/2] [new uImage] ppc: Fix ftd_blob variable init when processing raw blob

Marian Balakowicz m8 at semihalf.com
Fri Apr 11 11:07:43 CEST 2008


Set fdt_blob variable before its value is printed out.

Signed-off-by: Marian Balakowicz <m8 at semihalf.com>
---

 lib_ppc/bootm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/lib_ppc/bootm.c b/lib_ppc/bootm.c
index 2901607..b24a064 100644
--- a/lib_ppc/bootm.c
+++ b/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 = (char *)fdt_addr;
 				debug ("*  fdt: raw FDT blob\n");
 				printf ("## Flattened Device Tree blob at %08lx\n", fdt_blob);
-				fdt_blob = (char *)fdt_addr;
 			}
 			break;
 		default:





More information about the U-Boot mailing list