summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorHanjun Guo <guohanjun@huawei.com>2022-11-17 19:23:41 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-04 11:26:31 +0100
commit2fcd3dc8b97a14f1672729c86b7041a1a89b052a (patch)
tree4667c25047ec93437468a307ff2df20fc26f539b /tools/perf/scripts/python/export-to-sqlite.py
parent694a3d66f493afd77c704c6de91d9be4d6e004e4 (diff)
tpm: tpm_crb: Add the missed acpi_put_table() to fix memory leak
commit 37e90c374dd11cf4919c51e847c6d6ced0abc555 upstream. In crb_acpi_add(), we get the TPM2 table to retrieve information like start method, and then assign them to the priv data, so the TPM2 table is not used after the init, should be freed, call acpi_put_table() to fix the memory leak. Fixes: 30fc8d138e91 ("tpm: TPM 2.0 CRB Interface") Cc: stable@vger.kernel.org Signed-off-by: Hanjun Guo <guohanjun@huawei.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions