mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-25 07:41:40 +02:00
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 <masahisa.kojima@linaro.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
67af329a74
commit
a135320b42
@ -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…
x
Reference in New Issue
Block a user