]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: GetVariable set attributes for EFI_BUFFER_TOO_SMALL
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 15 May 2019 17:32:43 +0000 (19:32 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 19 May 2019 06:10:10 +0000 (08:10 +0200)
commit6f1b6b98239d153fe68f33017ad3227366157a47
tree134511777c68e86c94b2c5d2b3c22183437c3611
parentc5a49c05641ccbe97f27efff48433726a271aade
efi_loader: GetVariable set attributes for EFI_BUFFER_TOO_SMALL

UEFI spec 2.7 erratum A leaves it undefined if Attributes should be set if
GetVariable() returns EFI_BUFFER_TOO_SMALL.

UEFI spec 2.8 defines that Attributes should be set if the return value is
either EFI_SUCCESS or EFI_BUFFER_TOO_SMALL.

Set Attributes if the return value is EFI_BUFFER_TOO_SMALL.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_variable.c