]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: update SetVariable attribute check
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Tue, 21 Feb 2023 02:33:17 +0000 (11:33 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 13 Mar 2023 12:56:14 +0000 (13:56 +0100)
commit292fb910436060068b45a590435d5d98093d1644
tree62ad88c22558368402990319480351398cc38bb7
parenteb40b52e0e7a558f5b3528c15e7997e1c47b6d7e
efi_loader: update SetVariable attribute check

UEFI specification v2.10 says that
EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS is deprecated and
EFI_UNSUPPORTED should be returned in SetVariable variable service.
Current implementation returns EFI_INVALID_PARAMETER,
let's fix the return value.

Together with above change, this commit also updates the SetVariable
attribute check to be aligned with the EDK2 reference implementation.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_variable.c