mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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)
|
EFI_VARIABLE_RUNTIME_ACCESS)
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
|
|
||||||
if (attributes & EFI_VARIABLE_HARDWARE_ERROR_RECORD)
|
|
||||||
return EFI_UNSUPPORTED;
|
|
||||||
|
|
||||||
if (attributes & ~(u32)EFI_VARIABLE_MASK)
|
if (attributes & ~(u32)EFI_VARIABLE_MASK)
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue