From: Masahisa Kojima Date: Wed, 15 Feb 2023 02:32:17 +0000 (+0900) Subject: efi_loader: fix wrong attribute check for QueryVariableInfo X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=a135320b428a09b7856bb06c248eca0ffffb60f5;p=u-boot.git 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 Reviewed-by: Heinrich Schuchardt --- diff --git a/lib/efi_loader/efi_variable.c b/lib/efi_loader/efi_variable.c index 4c85cfa607..5804f69954 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;