Re: [PATCH v11 00/16] Remove nested TPM operations

From: Stefan Berger
Date: Fri Feb 08 2019 - 09:02:33 EST

On 2/8/19 8:33 AM, Jarkko Sakkinen wrote:

if (len != be32_to_cpu(header->length)) {
rc = -EFAULT;
goto out;

rc = tpm2_commit_space(chip, space, ordinal, buf, &len);
if (rc)
dev_err(&chip->dev, "tpm2_commit_space: error %d\n", rc);

That unconditional call to commit space masked the bugs in the device
drivers. I'll provide fixes shortly.

You got it! :-)