From 9c906110972f538ee5753845916ebd1f826f54b6 Mon Sep 17 00:00:00 2001 From: Joel Kitching Date: Thu, 1 Aug 2019 13:36:44 +0800 Subject: vboot/tpm: fix return type inconsistencies TPM errors and vboot errors were getting mixed up. Note that this patch changes a function signature in the vboot1 API. Any callers of the function should be updated accordingly. BUG=b:124141368, chromium:988410 TEST=make clean && make runtests BRANCH=none Change-Id: Idf332ca9ac61b5771fccf9e2ce75e8689c0aace9 Signed-off-by: Joel Kitching Cq-Depend: chromium:1730374 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1729712 Reviewed-by: Joel Kitching Commit-Queue: Joel Kitching Tested-by: Joel Kitching --- firmware/lib/tpm2_lite/tlcl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'firmware/lib/tpm2_lite') diff --git a/firmware/lib/tpm2_lite/tlcl.c b/firmware/lib/tpm2_lite/tlcl.c index 8705143a..9e6bc49f 100644 --- a/firmware/lib/tpm2_lite/tlcl.c +++ b/firmware/lib/tpm2_lite/tlcl.c @@ -38,7 +38,8 @@ static uint32_t tpm_get_response(TPM_CC command, { /* Command/response buffer. */ static uint8_t cr_buffer[TPM_BUFFER_SIZE]; - int out_size, res; + int out_size; + uint32_t res; uint32_t in_size; out_size = tpm_marshal_command(command, command_body, -- cgit v1.2.1