cmd: bootefi: Fix fdt_size variable type in efi_carve_out_dt_rsv()
authorBin Meng <bin.meng@windriver.com>
Tue, 23 Jun 2020 06:50:50 +0000 (23:50 -0700)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 24 Jun 2020 14:50:15 +0000 (16:50 +0200)
Variable fdt_size should be of type 'fdt_size_t', not 'fdt_addr_t'.

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

index ac713cad1b69faf98fbced670b3bfbbb30df1f14..826915397373f9349549188494d80ecbfa37d426 100644 (file)
@@ -189,7 +189,8 @@ static void efi_carve_out_dt_rsv(void *fdt)
        if (nodeoffset >= 0) {
                subnode = fdt_first_subnode(fdt, nodeoffset);
                while (subnode >= 0) {
-                       fdt_addr_t fdt_addr, fdt_size;
+                       fdt_addr_t fdt_addr;
+                       fdt_size_t fdt_size;
 
                        /* check if this subnode has a reg property */
                        fdt_addr = fdtdec_get_addr_size_auto_parent(