efi_loader: fix BootOrder variable measurement handling
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Tue, 9 Nov 2021 09:44:54 +0000 (18:44 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 10 Nov 2021 19:57:54 +0000 (20:57 +0100)
commitc9c1cdbda3deea265838cf6c6bd6a1eb1569e15c
tree2aa2786c5dd95dd0b8f9cc5b59167dfebee7c061
parent6354913def1f61711c2278bd2616c748f21f69da
efi_loader: fix BootOrder variable measurement handling

UEFI specification does not require that BootOrder is defined.
In current implementation, boot variable measurement fails and
returns EFI_NOT_FOUND if BootOrder is not defined.

This commit correcly handles this case, skip the boot variable
measurement if BootOrder is not defined.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_tcg2.c