ARM: calculate compressed dtb len correctly
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
d9c2cfd534
commit
d925f1ed32
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ __noreturn void barebox_non_pbl_start(unsigned long membase,
|
|||
name = "DTB";
|
||||
} else if (blob_is_compressed_fdt(boarddata)) {
|
||||
struct barebox_arm_boarddata_compressed_dtb *bd = boarddata;
|
||||
totalsize = bd->datalen;
|
||||
totalsize = bd->datalen + sizeof(*bd);
|
||||
name = "Compressed DTB";
|
||||
} else if (blob_is_arm_boarddata(boarddata)) {
|
||||
totalsize = sizeof(struct barebox_arm_boarddata);
|
||||
|
|
Loading…
Reference in a new issue