+ fix-acpi_ev_pci_config_region_setup-to-avoid-memory-leak.patch added to -mm tree

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

 



The patch titled
     Fix acpi_ev_pci_config_region_setup() to avoid memory leak
has been added to the -mm tree.  Its filename is
     fix-acpi_ev_pci_config_region_setup-to-avoid-memory-leak.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Fix acpi_ev_pci_config_region_setup() to avoid memory leak
From: Jesper Juhl <jesper.juhl@xxxxxxxxx>

In drivers/acpi/events/evrgnini.c::acpi_ev_pci_config_region_setup()
there is a memory leak.
We may return at "if (!pci_device_node)" without freeing storage
previously allocated and assigned to 'pci_id'.
This patch fixes the leak by freeing the allocated storage in this
case.

Signed-off-by: Jesper Juhl <jesper.juhl@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/acpi/events/evrgnini.c |    1 +
 1 files changed, 1 insertion(+)

diff -puN drivers/acpi/events/evrgnini.c~fix-acpi_ev_pci_config_region_setup-to-avoid-memory-leak drivers/acpi/events/evrgnini.c
--- a/drivers/acpi/events/evrgnini.c~fix-acpi_ev_pci_config_region_setup-to-avoid-memory-leak
+++ a/drivers/acpi/events/evrgnini.c
@@ -284,6 +284,7 @@ acpi_ev_pci_config_region_setup(acpi_han
 	}
 
 	if (!pci_device_node) {
+		ACPI_FREE(pci_id);
 		return_ACPI_STATUS(AE_AML_OPERAND_TYPE);
 	}
 
_

Patches currently in -mm which might be from jesper.juhl@xxxxxxxxx are

origin.patch
fix-acpi_ev_pci_config_region_setup-to-avoid-memory-leak.patch
git-mtd.patch
remove-unneeded-test-of-task-in-dump_trace.patch
git-xfs.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux