diff options
author | James Bottomley <[email protected]> | 2021-04-21 15:42:47 -0700 |
---|---|---|
committer | James Bottomley <[email protected]> | 2021-04-21 16:28:20 -0700 |
commit | 9d5171eab462a63e2fbebfccf6026e92be018f20 (patch) | |
tree | a517b164c71bab539f7f8a775346b2f75a4eb62b /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | bf05bf16c76bb44ab5156223e1e58e26dfe30a88 (diff) |
KEYS: trusted: Fix TPM reservation for seal/unseal
The original patch 8c657a0590de ("KEYS: trusted: Reserve TPM for seal
and unseal operations") was correct on the mailing list:
https://lore.kernel.org/linux-integrity/[email protected]/
But somehow got rebased so that the tpm_try_get_ops() in
tpm2_seal_trusted() got lost. This causes an imbalanced put of the
TPM ops and causes oopses on TIS based hardware.
This fix puts back the lost tpm_try_get_ops()
Fixes: 8c657a0590de ("KEYS: trusted: Reserve TPM for seal and unseal operations")
Reported-by: Mimi Zohar <[email protected]>
Acked-by: Mimi Zohar <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions