efi_loader: Don't warn if the TCG2 FinalEvents table is not installed
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 28 Nov 2024 07:11:20 +0000 (09:11 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 5 Jan 2025 01:30:48 +0000 (02:30 +0100)
commit6f1251a78b13c2f7c1c68fbca39c28b65cf28453
treea8b39b8147f2d7db7df5f0e6f15e2f6c9085bbe0
parent5a4ac8a35a7ff5260ced655d2816bb135e6f6bff
efi_loader: Don't warn if the TCG2 FinalEvents table is not installed

When the TCG2 protocol installation fails, we are trying to remove
all the objects we created in tcg2_uninit().

However, there are cases when this function runs before the config
table was installed. So instead of printing an error unconditionally
check against EFI_NOT_FOUND and don't print anything if the table wasn't
installed to begin with.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_tcg2.c