Revert "tpm: Clean up TPM space after command failure"
This reverts commit 59571294fa
.
This commit is contained in:
parent
8172c9bb7a
commit
dc8e64e562
2 changed files with 0 additions and 5 deletions
|
@ -48,8 +48,6 @@ static ssize_t tpm_dev_transmit(struct tpm_chip *chip, struct tpm_space *space,
|
|||
|
||||
if (!ret)
|
||||
ret = tpm2_commit_space(chip, space, buf, &len);
|
||||
else
|
||||
tpm2_flush_space(chip);
|
||||
|
||||
out_rc:
|
||||
return ret ? ret : len;
|
||||
|
|
|
@ -166,9 +166,6 @@ void tpm2_flush_space(struct tpm_chip *chip)
|
|||
struct tpm_space *space = &chip->work_space;
|
||||
int i;
|
||||
|
||||
if (!space)
|
||||
return;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(space->context_tbl); i++)
|
||||
if (space->context_tbl[i] && ~space->context_tbl[i])
|
||||
tpm2_flush_context(chip, space->context_tbl[i]);
|
||||
|
|
Loading…
Reference in a new issue