]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: efi_current_var after SetVirtualAddressMap
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 22 Jul 2020 04:29:38 +0000 (06:29 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 22 Jul 2020 10:32:41 +0000 (12:32 +0200)
commit6066a387b48670e012467c7ec32559509936087a
treefdde29b68956a5b8aacf4a44ebdbc8d5a9b13f8f
parentd0a20b118e69be1879652952e9a2508ef215af53
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: 92d361ab0bbc ("efi_loader: enable UEFI variables at runtime")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_var_mem.c