Message ID | 20200210100048.21448-2-roberto.sassu@huawei.com |
---|---|
State | Superseded |
Headers | show |
Series | [v3,1/8] tpm: Initialize crypto_id of allocated_banks to HASH_ALGO__LAST | expand |
diff --git a/drivers/char/tpm/tpm2-cmd.c b/drivers/char/tpm/tpm2-cmd.c index 13696deceae8..760329598b99 100644 --- a/drivers/char/tpm/tpm2-cmd.c +++ b/drivers/char/tpm/tpm2-cmd.c @@ -525,6 +525,8 @@ static int tpm2_init_bank_info(struct tpm_chip *chip, u32 bank_index) return 0; } + bank->crypto_id = HASH_ALGO__LAST; + return tpm2_pcr_read(chip, 0, &digest, &bank->digest_size); }