summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorHanjun Guo <guohanjun@huawei.com>2022-11-17 19:23:41 +0800
committerJarkko Sakkinen <jarkko@kernel.org>2022-12-08 16:20:47 +0000
commit37e90c374dd11cf4919c51e847c6d6ced0abc555 (patch)
treeadd55567fd37a6c0c68ccf43cc2b9de2b4d6c484 /drivers/spi
parent8740a12ca2e2959531ad253bac99ada338b33d80 (diff)
downloadlinux-37e90c374dd11cf4919c51e847c6d6ced0abc555.tar.bz2
tpm: tpm_crb: Add the missed acpi_put_table() to fix memory leak
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>
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions