tlcl: tpm2: fix unmarshal_u32 return value

Before the fix, unmarshal_u32 returned only 16 bits of the value.

BRANCH=none
BUG=chrome-os-partner:55210
TEST=boot on keving, verify that 'tpmc getvf' correctly returns
     the 'orderly' flag (bit 31 of a 32-bit flags value)

Change-Id: I182abdd78a6bdcbc21fe631492559099caeb934f
Reviewed-on: https://chromium-review.googlesource.com/362994
Commit-Ready: Andrey Pronin <apronin@chromium.org>
Tested-by: Andrey Pronin <apronin@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
This commit is contained in:
Andrey Pronin
2016-07-25 15:15:04 -07:00
committed by chrome-bot
parent 0960682caa
commit 085c20557c

View File

@@ -85,7 +85,7 @@ static uint16_t unmarshal_u16(void **buffer, int *buffer_space)
return value; return value;
} }
static uint16_t unmarshal_u32(void **buffer, int *buffer_space) static uint32_t unmarshal_u32(void **buffer, int *buffer_space)
{ {
uint32_t value; uint32_t value;