Skip to content

Commit d6cf86d

Browse files
Seiji AguchiMatt Fleming
authored andcommitted
efi: initialize efi.runtime_version to make query_variable_info/update_capsule workable
A value of efi.runtime_version is checked before calling update_capsule()/query_variable_info() as follows. But it isn't initialized anywhere. <snip> static efi_status_t virt_efi_query_variable_info(u32 attr, u64 *storage_space, u64 *remaining_space, u64 *max_variable_size) { if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) return EFI_UNSUPPORTED; <snip> This patch initializes a value of efi.runtime_version at boot time. Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com> Acked-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
1 parent 9dead5b commit d6cf86d

File tree

1 file changed

+1
-0
lines changed
  • arch/x86/platform/efi

1 file changed

+1
-0
lines changed

arch/x86/platform/efi/efi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,7 @@ void __init efi_enter_virtual_mode(void)
890890
*
891891
* Call EFI services through wrapper functions.
892892
*/
893+
efi.runtime_version = efi_systab.fw_revision;
893894
efi.get_time = virt_efi_get_time;
894895
efi.set_time = virt_efi_set_time;
895896
efi.get_wakeup_time = virt_efi_get_wakeup_time;

0 commit comments

Comments
 (0)