[RFC Patch v1 06/13] ACPI, TPM: fix memory leak when walking ACPI namespace

2013-12-17 Thread Jiang Liu
In function ppi_callback(), memory allocated by acpi_get_name() will get leaked when current device isn't the desired TPM device, so fix the memory leak. Signed-off-by: Jiang Liu Cc: # 3.6 --- drivers/char/tpm/tpm_ppi.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-)

[RFC Patch v1 06/13] ACPI, TPM: fix memory leak when walking ACPI namespace

2013-12-17 Thread Jiang Liu
In function ppi_callback(), memory allocated by acpi_get_name() will get leaked when current device isn't the desired TPM device, so fix the memory leak. Signed-off-by: Jiang Liu jiang@linux.intel.com Cc: sta...@vger.kernel.org # 3.6 --- drivers/char/tpm/tpm_ppi.c | 15 +-- 1