diff options
author | Matt Fleming <matt.fleming@intel.com> | 2014-03-16 13:46:46 -0400 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2014-03-17 17:55:04 -0400 |
commit | 9a11040ff962304c1838aa9a9f33be78784eae47 (patch) | |
tree | 9402ef5b2d8c7e1f110302bf9604204c80cb9c11 | |
parent | 3f4a7836e33134d4ac34fa7c99788f0c6a79fa1c (diff) |
x86/efi: Restore 'attr' argument to query_variable_info()
In the thunk patches the 'attr' argument was dropped to
query_variable_info(). Restore it otherwise the firmware will return
EFI_INVALID_PARAMETER.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r-- | arch/x86/platform/efi/efi_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/platform/efi/efi_64.c b/arch/x86/platform/efi/efi_64.c index 7e7f195aa5cf..290d397e1dd9 100644 --- a/arch/x86/platform/efi/efi_64.c +++ b/arch/x86/platform/efi/efi_64.c | |||
@@ -567,7 +567,7 @@ efi_thunk_query_variable_info(u32 attr, u64 *storage_space, | |||
567 | phys_remaining = virt_to_phys(remaining_space); | 567 | phys_remaining = virt_to_phys(remaining_space); |
568 | phys_max = virt_to_phys(max_variable_size); | 568 | phys_max = virt_to_phys(max_variable_size); |
569 | 569 | ||
570 | status = efi_thunk(query_variable_info, phys_storage, | 570 | status = efi_thunk(query_variable_info, attr, phys_storage, |
571 | phys_remaining, phys_max); | 571 | phys_remaining, phys_max); |
572 | 572 | ||
573 | return status; | 573 | return status; |