Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 36a11029 authored by Ricardo Schwarzmeier's avatar Ricardo Schwarzmeier Committed by Jarkko Sakkinen
Browse files

tpm: Return the actual size when receiving an unsupported command



The userpace expects to read the number of bytes stated in the header.
Returning the size of the buffer instead would be unexpected.

Cc: stable@vger.kernel.org
Fixes: 095531f8 ("tpm: return a TPM_RC_COMMAND_CODE response if command is not implemented")
Signed-off-by: default avatarRicardo Schwarzmeier <Ricardo.Schwarzmeier@infineon.com>
Reviewed-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
parent 627448e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment