mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
efi_loader: check map_key in ExitBootServices
The UEFI spec requires that the memory map key is checked in ExitBootServices(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
8e835554b3
commit
1fcb7ea284
3 changed files with 14 additions and 1 deletions
|
@ -1854,6 +1854,10 @@ static efi_status_t EFIAPI efi_exit_boot_services(efi_handle_t image_handle,
|
|||
|
||||
EFI_ENTRY("%p, %ld", image_handle, map_key);
|
||||
|
||||
/* Check that the caller has read the current memory map */
|
||||
if (map_key != efi_memory_map_key)
|
||||
return EFI_INVALID_PARAMETER;
|
||||
|
||||
/* Make sure that notification functions are not called anymore */
|
||||
efi_tpl = TPL_HIGH_LEVEL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue