[PATCH v3 3/4] ima: Use tpm_chip_find() and call TPM functions with a tpm_chip

2018-06-22 Thread Stefan Berger
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 --- security/integrity/ima/ima.h| 1 +

[PATCH v3 3/4] ima: Use tpm_chip_find() and call TPM functions with a tpm_chip

2018-06-22 Thread Stefan Berger
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 --- security/integrity/ima/ima.h| 1 +