]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: Set variable attributes when EFI_BUFFER_TOO_SMALL is returned
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Wed, 16 Mar 2022 15:13:37 +0000 (17:13 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 20 Mar 2022 10:03:06 +0000 (11:03 +0100)
commitff6af6eede200503c58250821d1285f94039eef7
treebfe5fe0504a63b54db46b277c24c0b321c90defb
parent0832dd2900f3ec7bf2ae12866138fc0fd9970168
efi_loader: Set variable attributes when EFI_BUFFER_TOO_SMALL is returned

Starting UEFI Spec 2.8 we must fill in the variable attributes when
GetVariable() returns EFI_BUFFER_TOO_SMALL and Attributes is non-NULL.

This code was written with 2.7 in mind so let's move the code around a
bit and fill in the attributes EFI_BUFFER_TOO_SMALL is returned

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_variable_tee.c