]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: incorrect check against FDT_ADDR_T_NONE
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 30 Jun 2020 12:12:43 +0000 (14:12 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 30 Jun 2020 12:16:20 +0000 (14:16 +0200)
With commit 0d7c2913fdf7 ("cmd: bootefi: Honor the address & size cells
properties correctly") addr was replaced by fdt_addr. But not in the check
against FDT_ADDR_T_NONE.

Fixes: 0d7c2913fdf7 ("cmd: bootefi: Honor the address & size cells properties
correctly")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
cmd/bootefi.c

index 826915397373f9349549188494d80ecbfa37d426..57552f99fcf12388a90fe62ce8058611b426d1b5 100644 (file)
@@ -200,7 +200,7 @@ static void efi_carve_out_dt_rsv(void *fdt)
                         * The /reserved-memory node may have children with
                         * a size instead of a reg property.
                         */
-                       if (addr != FDT_ADDR_T_NONE &&
+                       if (fdt_addr != FDT_ADDR_T_NONE &&
                            fdtdec_get_is_enabled(fdt, subnode))
                                efi_reserve_memory(fdt_addr, fdt_size);
                        subnode = fdt_next_subnode(fdt, subnode);