diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-07-22 06:29:38 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-07-22 12:32:41 +0200 |
commit | 01fa922bbbac378902ef85e522724dd7c7a10a8b (patch) | |
tree | fdde29b68956a5b8aacf4a44ebdbc8d5a9b13f8f /lib/efi_loader | |
parent | e9f1f5f48650301bd9e4194c474d19081c54f05b (diff) | |
download | u-boot-01fa922bbbac378902ef85e522724dd7c7a10a8b.tar.gz u-boot-01fa922bbbac378902ef85e522724dd7c7a10a8b.tar.bz2 u-boot-01fa922bbbac378902ef85e522724dd7c7a10a8b.zip |
efi_loader: efi_current_var after SetVirtualAddressMap
Variable efi_current_var is a pointer to a physical memory address that
becomes invalid after SetVirtualAddressMap(). Instead of converting it via
ConvertPointer() simply set it to NULL.
Fixes: b02a707152dc ("efi_loader: enable UEFI variables at runtime")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_loader')
-rw-r--r-- | lib/efi_loader/efi_var_mem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_var_mem.c b/lib/efi_loader/efi_var_mem.c index 7a2dba7dc2..856e5e1d56 100644 --- a/lib/efi_loader/efi_var_mem.c +++ b/lib/efi_loader/efi_var_mem.c @@ -231,6 +231,7 @@ static void EFIAPI __efi_runtime efi_var_mem_notify_virtual_address_map(struct efi_event *event, void *context) { efi_convert_pointer(0, (void **)&efi_var_buf); + efi_current_var = NULL; } efi_status_t efi_var_mem_init(void) |