summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/fdtdec.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index c6e13b6abef..2d66860f6ed 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -1781,8 +1781,11 @@ static int fdtdec_apply_bloblist_dtos(void)
if (ret)
return ret;
- /* Shink the blob to the actual FDT size */
- fdt_pack(live_fdt);
+ /* Shrink the blob to the actual FDT size */
+ ret = fdt_pack(live_fdt);
+ if (ret)
+ return ret;
+
return bloblist_resize(BLOBLISTT_CONTROL_FDT, fdt_totalsize(live_fdt));
}