efi_loader: fix wrong attribute check for QueryVariableInfo
QueryVariableInfo with EFI_VARIABLE_HARDWARE_ERROR_RECORD is
accepted, remove wrong attribute check.
Fixes: 454a9442fb
("efi_loader: update attribute check for QueryVariableInfo()")
Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
67af329a74
commit
a135320b42
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue