git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
KEYS: trusted: Fix TPM reservation for seal/unseal
[sfrench/cifs-2.6.git]
/
security
/
keys
/
trusted-keys
/
trusted_tpm2.c
diff --git
a/security/keys/trusted-keys/trusted_tpm2.c
b/security/keys/trusted-keys/trusted_tpm2.c
index e2a0ed5d02f013392d337a1b543eeda1e986ba74..c87c4df8703d4ea9426cebab43846ed69fb04ddd 100644
(file)
--- 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;