diff options
| author | Masahisa Kojima <[email protected]> | 2023-02-15 11:32:17 +0900 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2023-02-19 21:15:15 +0100 |
| commit | a135320b428a09b7856bb06c248eca0ffffb60f5 (patch) | |
| tree | 8996f515c21e5db3a1a124605ec94ad4276f7f16 /lib | |
| parent | 67af329a741b546986be2f3b18933f8c8b373bed (diff) | |
efi_loader: fix wrong attribute check for QueryVariableInfo
QueryVariableInfo with EFI_VARIABLE_HARDWARE_ERROR_RECORD is
accepted, remove wrong attribute check.
Fixes: 454a9442fbce ("efi_loader: update attribute check for QueryVariableInfo()")
Signed-off-by: Masahisa Kojima <[email protected]>
Reviewed-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/efi_loader/efi_variable.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/efi_loader/efi_variable.c b/lib/efi_loader/efi_variable.c index 4c85cfa607e..5804f69954a 100644 --- a/lib/efi_loader/efi_variable.c +++ b/lib/efi_loader/efi_variable.c @@ -366,9 +366,6 @@ efi_status_t efi_query_variable_info_int(u32 attributes, EFI_VARIABLE_RUNTIME_ACCESS) return EFI_INVALID_PARAMETER; - if (attributes & EFI_VARIABLE_HARDWARE_ERROR_RECORD) - return EFI_UNSUPPORTED; - if (attributes & ~(u32)EFI_VARIABLE_MASK) return EFI_INVALID_PARAMETER; |
