]> git.sur5r.net Git - u-boot/commitdiff
efi_memory: return MapKey
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Fri, 21 Jul 2017 17:05:44 +0000 (19:05 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 24 Jul 2017 12:46:13 +0000 (14:46 +0200)
efi_get_memory_map should set a defined value for map_key.

We later can introduce the test against this value in
efi_exit_boot_services as required by the UEFI standard.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_memory.c

index c56653f4978f2db0c32ef6faa9fe172d97390bbe..f59e3ea32788880eebf3059d306587b00a062681 100644 (file)
@@ -431,6 +431,8 @@ efi_status_t efi_get_memory_map(unsigned long *memory_map_size,
                }
        }
 
+       *map_key = 0;
+
        return EFI_SUCCESS;
 }