commit | 09402b160e6bdf0a936d07f29e28be6bf79bba9f | [log] [tgz] |
---|---|---|
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | Wed May 26 21:01:00 2021 +0300 |
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | Fri May 28 16:17:01 2021 +0200 |
tree | c1c7261da451e55f82b7985ec71c24f9bbedf635 | |
parent | 76ec0c3529b9b6642135bb4b2afdb67604c66777 [diff] |
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>