Do not use global fdt blob pointer, calculate blob size from routine
argument blob pointer.

Signed-off-by: Marian Balakowicz <[EMAIL PROTECTED]>
---

 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 8974ccd..7977157 100644
--- a/lib_ppc/bootm.c
+++ b/lib_ppc/bootm.c
@@ -557,7 +557,7 @@ static int boot_relocate_fdt (struct lmb *lmb, ulong 
bootmap_base,
        if (fdt_blob >= (char *)CFG_BOOTMAPSZ)
                relocate = 1;
 
-       of_len = be32_to_cpu (fdt_totalsize (fdt));
+       of_len = be32_to_cpu (fdt_totalsize (fdt_blob));
 
        /* move flattend device tree if needed */
        if (relocate) {


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to