mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
[new uImage] Fix FDT blob totalsize calculation in boot_relocate_fdt()
Do not use global fdt blob pointer, calculate blob size from routine argument blob pointer. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
This commit is contained in:
parent
d1cc52879c
commit
05e07b1ea2
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue