diff options
author | Hanjun Guo <guohanjun@huawei.com> | 2022-11-17 14:23:42 +0300 |
---|---|---|
committer | Jarkko Sakkinen <jarkko@kernel.org> | 2022-12-08 19:20:47 +0300 |
commit | db9622f762104459ff87ecdf885cc42c18053fd9 (patch) | |
tree | 8a7d8a460f0f3f6dd623d2edb3609f828839d8d1 /drivers/char/tpm/tpm_ftpm_tee.c | |
parent | 37e90c374dd11cf4919c51e847c6d6ced0abc555 (diff) | |
download | linux-db9622f762104459ff87ecdf885cc42c18053fd9.tar.xz |
tpm: tpm_tis: Add the missed acpi_put_table() to fix memory leak
In check_acpi_tpm2(), we get the TPM2 table just to make
sure the table is there, not used after the init, so the
acpi_put_table() should be added to release the ACPI memory.
Fixes: 4cb586a188d4 ("tpm_tis: Consolidate the platform and acpi probe flow")
Cc: stable@vger.kernel.org
Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'drivers/char/tpm/tpm_ftpm_tee.c')
0 files changed, 0 insertions, 0 deletions