From c6722a43414330bb1c48facecee1dbc3daf5b12f Mon Sep 17 00:00:00 2001 From: Masahisa Kojima Date: Wed, 15 Feb 2023 11:32:17 +0900 Subject: [PATCH] efi_loader: fix wrong attribute check for QueryVariableInfo QueryVariableInfo with EFI_VARIABLE_HARDWARE_ERROR_RECORD is accepted, remove wrong attribute check. Fixes: 9195ef414f04 ("efi_loader: update attribute check for QueryVariableInfo()") Signed-off-by: Masahisa Kojima Reviewed-by: Heinrich Schuchardt --- lib/efi_loader/efi_variable.c | 3 --- 1 file changed, 3 deletions(-) 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; -- 2.39.5