]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: Clean up tcg2 once in case of failure
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Mon, 10 May 2021 18:15:08 +0000 (21:15 +0300)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 18 May 2021 10:36:12 +0000 (12:36 +0200)
commitb76edf6b0753ada33d1ae486c621f5284d034055
treef2f22de195153e39e2c9bf2ab15e6ca024492d29
parentbc3f46518176e541c767b099fb06ad1870d59fa5
efi_loader: Clean up tcg2 once in case of failure

efi_init_event_log() calls tcg2_uninit() in case of failure.
We can skip that since the function is called on efi_tcg2_register()
which also cleans up if an error occurs

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