mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
5a4ac8a35a
commit
6f1251a78b
1 changed files with 1 additions and 1 deletions
|
@ -791,7 +791,7 @@ static void tcg2_uninit(void)
|
|||
efi_status_t ret;
|
||||
|
||||
ret = efi_install_configuration_table(&efi_guid_final_events, NULL);
|
||||
if (ret != EFI_SUCCESS)
|
||||
if (ret != EFI_SUCCESS && ret != EFI_NOT_FOUND)
|
||||
log_err("Failed to delete final events config table\n");
|
||||
|
||||
efi_free_pool(event_log.buffer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue