Re: [PATCH v5 4/5] ima: Use tpm_default_chip() and call TPM functions with a tpm_chip

From: Jarkko Sakkinen
Date: Tue Jun 26 2018 - 09:26:13 EST


On Tue, 2018-06-26 at 07:06 -0400, Stefan Berger wrote:
> Rather than accessing the TPM functions by passing a NULL pointer for
> the tpm_chip, which causes a lookup for a suitable chip every time, get a
> hold of a tpm_chip and access the TPM functions using it.
>
> Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxxxxxxxxxx>

Acked-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx>

(i.e. LGTM but competence to give a detailed review).

/Jarkko