Re: [PATCH v2] tpm: Return the actual size when receiving an unsupported command

From: Jarkko Sakkinen
Date: Thu Jun 21 2018 - 12:48:27 EST


On Wed, Jun 20, 2018 at 11:55:07AM +0200, Ricardo Schwarzmeier wrote:
> The command size is computed for the header anyway.
> It can as well indicate the correct number of bytes to read from the driver.
> Fixes: 095531f891e6 ("tpm: return a TPM_RC_COMMAND_CODE response if command is not implemented")
>
> Signed-off-by: Ricardo Schwarzmeier <Ricardo.Schwarzmeier@xxxxxxxxxxxx>

Can you fix the kbuild error and send v3? Otherwise, LGMT.

/Jarkko