Re: [PATCH 1/3] tpm: acpi: Call acpi_put_table() to fix memory leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2022/11/16 7:51, Jarkko Sakkinen wrote:
On Wed, Nov 09, 2022 at 12:03:40PM +0800, Hanjun Guo wrote:
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().


Please add to the commit message:

Cc: stable@xxxxxxxxxxxxxxx

And cc this patch also to linux-kernel@xxxxxxxxxxxxxxx.

OK, will update this patch set as you suggested.

Thanks
Hanjun



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux Kernel Hardening]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux