]> git.sur5r.net Git - u-boot/blobdiff - lib_ppc/bootm.c
[new uImage] Fix FDT blob totalsize calculation in boot_relocate_fdt()
[u-boot] / lib_ppc / bootm.c
index 8974ccd81ce07f672bef9bdbaf307157ab0d808c..797715773d3304bf3939258b37cf089eaef19a10 100644 (file)
@@ -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) {