efi_loader: Fix coverity warnings for efi tcg2 protocol
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Wed, 26 May 2021 18:01:00 +0000 (21:01 +0300)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 28 May 2021 14:17:01 +0000 (16:17 +0200)
commit38de680e582b36d4605b05d3b2c67a3c0c458bfb
treec1c7261da451e55f82b7985ec71c24f9bbedf635
parentaab8b17e94c447561a402bc7508b73fd8ee712e5
efi_loader: Fix coverity warnings for efi tcg2 protocol

Coverity reported 3 warnings on the current code.
CID 331856, 331855, 331854 on the latest scan.

Fix the rest of the warnings by initializing the variables before
passing them to tpm2_get_pcr_info().
In order to avoid future warnings and errors initialize them to 0 within
the function as well, since the values are always OR'ed after querying the
hardware.

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