Hanjun Guo e60fa800a3 tpm: tpm_tis: Add the missed acpi_put_table() to fix memory leak
commit db9622f762104459ff87ecdf885cc42c18053fd9 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-04 11:29:02 +01:00
..
2022-10-12 10:23:24 -07:00
2022-11-04 16:03:43 -07:00
2023-01-04 11:29:01 +01:00
2022-12-31 13:33:12 +01:00
2022-10-14 18:41:41 -07:00
2022-10-10 09:10:28 -07:00
2022-12-31 13:33:12 +01:00
2022-10-10 14:02:53 -07:00
2022-10-10 14:02:53 -07:00
2022-12-31 13:32:09 +01:00