tcgbios: Fix use of unitialized variable

Review-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
(cherry picked from commit 1ef72ab2f8)
This commit is contained in:
Kevin O'Connor 2017-09-02 21:42:12 -04:00 committed by Gerd Hoffmann
parent 6055583af7
commit b7661dd083
1 changed files with 1 additions and 2 deletions

View File

@ -1269,7 +1269,6 @@ hash_log_extend_event_int(const struct hleei_short *hleei_s,
struct hleeo *hleeo)
{
u32 rc = 0;
struct hleo hleo;
struct hleei_long *hleei_l = (struct hleei_long *)hleei_s;
const void *logdataptr;
u32 logdatalen;
@ -1312,7 +1311,7 @@ hash_log_extend_event_int(const struct hleei_short *hleei_s,
hleeo->opblength = sizeof(struct hleeo);
hleeo->reserved = 0;
hleeo->eventnumber = hleo.eventnumber;
hleeo->eventnumber = tpm_state.entry_count;
memcpy(hleeo->digest, pcpes->digest, sizeof(hleeo->digest));
err_exit: