]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: fix wrong attribute check for QueryVariableInfo
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Wed, 15 Feb 2023 02:32:17 +0000 (11:32 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 19 Feb 2023 20:15:15 +0000 (21:15 +0100)
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>
lib/efi_loader/efi_variable.c

index 4c85cfa607e37c3bee575b1eec0bedded8987ac0..5804f69954a6579b9e6387da5878b51edbf9877f 100644 (file)
@@ -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;