Commit bcdf6b9f authored by Miquel Raynal's avatar Miquel Raynal Committed by Tom Rini
Browse files

tpm: report driver error code to upper layer

Instead of returning a generic 'library' error, report back the actual
error code so it can be displayed to the user by the regular error path.
Signed-off-by: default avatarMiquel Raynal <>
Reviewed-by: Simon Glass's avatarSimon Glass <>
Reviewed-by: Tom Rini's avatarTom Rini <>
parent aa643013
...@@ -169,7 +169,8 @@ u32 tpm_sendrecv_command(const void *command, void *response, size_t *size_ptr) ...@@ -169,7 +169,8 @@ u32 tpm_sendrecv_command(const void *command, void *response, size_t *size_ptr)
response, &response_length); response, &response_length);
if (err < 0) if (err < 0)
return TPM_LIB_ERROR; return err;
if (size_ptr) if (size_ptr)
*size_ptr = response_length; *size_ptr = response_length;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment