]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[fdtmem] Ignore reservation regions with no fixed addresses
authorMichael Brown <mcb30@ipxe.org>
Sun, 25 May 2025 23:22:52 +0000 (00:22 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sun, 25 May 2025 23:22:52 +0000 (00:22 +0100)
Do not print an error message for unused reservation regions that have
no fixed reserved address ranges.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/fdtmem.c

index fb44397af6f752fdf16def4149d2e3dcac721bc1..f048e45dda5930f210094d609ab5cd5637ff952e 100644 (file)
@@ -119,6 +119,10 @@ static int fdtmem_update_node ( struct memmap_region *region, struct fdt *fdt,
                /* Count regions */
                count = fdt_reg_count ( fdt, desc.offset, &regs );
                if ( count < 0 ) {
+                       if ( flags & MEMMAP_FL_RESERVED ) {
+                               /* Assume this is a non-fixed reservation */
+                               continue;
+                       }
                        rc = count;
                        DBGC ( region, "FDTMEM has malformed region %s: %s\n",
                               desc.name, strerror ( rc ) );