aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorHanjun Guo <[email protected]>2022-11-17 19:23:40 +0800
committerJarkko Sakkinen <[email protected]>2022-12-08 16:20:47 +0000
commit8740a12ca2e2959531ad253bac99ada338b33d80 (patch)
treea96703f5526cc2728142455ad88e44dcfa0bad23 /drivers/fpga/fpga-mgr.c
parent7bfda9c73fa9710a842a7d6f89b024351c80c19c (diff)
tpm: acpi: Call acpi_put_table() to fix memory leak
The start and length of the event log area are obtained from TPM2 or TCPA table, so we call acpi_get_table() to get the ACPI information, but the acpi_get_table() should be coupled with acpi_put_table() to release the ACPI memory, add the acpi_put_table() properly to fix the memory leak. While we are at it, remove the redundant empty line at the end of the tpm_read_log_acpi(). Fixes: 0bfb23746052 ("tpm: Move eventlog files to a subdirectory") Fixes: 85467f63a05c ("tpm: Add support for event log pointer found in TPM2 ACPI table") Cc: [email protected] Signed-off-by: Hanjun Guo <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions