From 085c20557c1f0b936a27b945185e620fdf47c36d Mon Sep 17 00:00:00 2001 From: Andrey Pronin Date: Mon, 25 Jul 2016 15:15:04 -0700 Subject: 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 Tested-by: Andrey Pronin Reviewed-by: Vadim Bendebury --- firmware/lib/tpm2_lite/marshaling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/lib/tpm2_lite/marshaling.c b/firmware/lib/tpm2_lite/marshaling.c index 61f726c4..73285c3d 100644 --- a/firmware/lib/tpm2_lite/marshaling.c +++ b/firmware/lib/tpm2_lite/marshaling.c @@ -85,7 +85,7 @@ static uint16_t unmarshal_u16(void **buffer, int *buffer_space) 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; -- cgit v1.2.1