From: xypron.glpk@gmx.de <xypron.glpk@gmx.de>
Date: Fri, 21 Jul 2017 17:05:44 +0000 (+0200)
Subject: efi_memory: return MapKey
X-Git-Tag: v2025.01-rc5-pxa1908~6192^2~19
X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=c6e3c3e68a240e7d503b7e4fee9ea6002e33f6a0;p=u-boot.git

efi_memory: return MapKey

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>
---

diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c
index c56653f497..f59e3ea327 100644
--- a/lib/efi_loader/efi_memory.c
+++ b/lib/efi_loader/efi_memory.c
@@ -431,6 +431,8 @@ efi_status_t efi_get_memory_map(unsigned long *memory_map_size,
 		}
 	}
 
+	*map_key = 0;
+
 	return EFI_SUCCESS;
 }