aboutsummaryrefslogtreecommitdiff
path: root/src/tcgbios.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-09-02 21:42:12 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-09-14 15:44:35 -0400
commit1ef72ab2f89ae61dcdb3f01323bd0a7dc978c2b9 (patch)
tree9cbc49f68d10325499ddc4810b83bd18afaf2739 /src/tcgbios.c
parent828af21d3ec33a67251a4dd3aa5751dc6e8ccf16 (diff)
downloadseabios-hppa-1ef72ab2f89ae61dcdb3f01323bd0a7dc978c2b9.zip
seabios-hppa-1ef72ab2f89ae61dcdb3f01323bd0a7dc978c2b9.tar.gz
seabios-hppa-1ef72ab2f89ae61dcdb3f01323bd0a7dc978c2b9.tar.bz2
tcgbios: Fix use of unitialized variable
Review-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/tcgbios.c')
-rw-r--r--src/tcgbios.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tcgbios.c b/src/tcgbios.c
index 1082470..bde1ef8 100644
--- a/src/tcgbios.c
+++ b/src/tcgbios.c
@@ -1186,7 +1186,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;
@@ -1229,7 +1228,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: