VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: James Bottomley <James.Bottomley@HansenPartnership.com> 2021-04-21 15:42:47 -0700 committer: James Bottomley <James.Bottomley@HansenPartnership.com> 2021-04-21 16:28:20 -0700 commit: 9d5171eab462a63e2fbebfccf6026e92be018f20 parent: bf05bf16c76bb44ab5156223e1e58e26dfe30a88
Commit Summary:
KEYS: trusted: Fix TPM reservation for seal/unseal
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/security/keys/trusted-keys/trusted_tpm2.c b/security/keys/trusted-keys/trusted_tpm2.c
index e2a0ed5d02f0..c87c4df8703d 100644
--- a/security/keys/trusted-keys/trusted_tpm2.c
+++ b/security/keys/trusted-keys/trusted_tpm2.c
@@ -79,7 +79,7 @@ int tpm2_seal_trusted(struct tpm_chip *chip,
 	if (i == ARRAY_SIZE(tpm2_hash_map))
 		return -EINVAL;
 
-	rc = tpm_buf_init(&buf, TPM2_ST_SESSIONS, TPM2_CC_CREATE);
+	rc = tpm_try_get_ops(chip);
 	if (rc)
 		return rc;