]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: Uninstall the TCG2 protocol if logging s-crtm fails
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Mon, 10 May 2021 18:19:14 +0000 (21:19 +0300)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 18 May 2021 10:36:13 +0000 (12:36 +0200)
commit97f446a8ff7ccefc1eb27c48c2e64d36dc8bd8e6
treee1c975ca8bc8a3f3d6c1ae2b906c5ea829a689bc
parentb76edf6b0753ada33d1ae486c621f5284d034055
efi_loader: Uninstall the TCG2 protocol if logging s-crtm fails

Instead of just failing, clean up the installed config table and
EventLog memory if logging an s-crtm event fails during the protocol
installation

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Eliminate label 'out:' by using return.
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_tcg2.c