]> git.baikalelectronics.ru Git - uboot.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)
commit89ff26b9ec6ac268c8874f6cce58a4056a4c200e
treebfe5fe0504a63b54db46b277c24c0b321c90defb
parentcf292730ec71a14040aa3ffe23d2350b1ccb181a
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