]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: Correctly account the SCRTM event creation
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 7 Nov 2023 11:31:34 +0000 (13:31 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 20 Nov 2023 18:06:22 +0000 (19:06 +0100)
commit229f9e77fe46efb2516b7cfdc60db1d92721eac5
tree28be018a24b2b8b2f19749d91a8196c63408a740
parenta8062549d6ba81e41596adab83f80e8f819f491d
efi_loader: Correctly account the SCRTM event creation

The result of efi_append_scrtm_version() is overwritten before anyone
checks its result. Check it and exit the function on failures

Addresses-Coverity-ID: 467399 Code maintainability issues (UNUSED_VALUE)
Fixes: commit 97707f12fdab ("tpm: Support boot measurements")
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_tcg2.c