mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
efi_loader: all variable attributes are 32bit
GetVariable() and SetVariable() use an uint32_t value for attributes. The UEFI specification defines the related constants as 32bit. Add the missing EFI_VARIABLE_ENHANCED_AUTHENTICATED_ACCESS constant. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
@@ -99,7 +99,7 @@ efi_status_t EFIAPI efi_set_variable(u16 *variable_name,
|
||||
data_size, data);
|
||||
|
||||
/* Make sure that the EFI_VARIABLE_READ_ONLY flag is not set */
|
||||
if (attributes & ~(u32)EFI_VARIABLE_MASK)
|
||||
if (attributes & ~EFI_VARIABLE_MASK)
|
||||
ret = EFI_INVALID_PARAMETER;
|
||||
else
|
||||
ret = efi_set_variable_int(variable_name, vendor, attributes,
|
||||
|
||||
Reference in New Issue
Block a user