On Mon Apr 29, 2024 at 11:28 PM EEST, James Bottomley wrote:
> +     if (chip->flags & TPM_CHIP_FLAG_DISABLE)
> +             return rc;
> +

s/DISABLE/ACCESS_DENIED/ as it is more to the point.

Further, tpm_open() should fail right off the bat after ending up to
this situation.

BR, Jarkko

Reply via email to