Re: [PATCH][ACPI] Fix acpi_ev_pci_config_region_setup() to avoid memory leak

2007-07-18 Thread Andrew Morton
On Thu, 19 Jul 2007 00:48:03 +0200 Jesper Juhl <[EMAIL PROTECTED]> wrote: > Hello, > > 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

Re: [PATCH][ACPI] Fix acpi_ev_pci_config_region_setup() to avoid memory leak

2007-07-18 Thread Len Brown
On Wednesday 18 July 2007 18:48, Jesper Juhl wrote: > drivers/acpi/events/evrgnini.c applied (after changing to ACPI_FREE()) thanks, -Len - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

[PATCH][ACPI] Fix acpi_ev_pci_config_region_setup() to avoid memory leak

2007-07-18 Thread Jesper Juhl
Hello, 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. Compile

[PATCH][ACPI] Fix acpi_ev_pci_config_region_setup() to avoid memory leak

2007-07-18 Thread Jesper Juhl
Hello, 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. Compile

Re: [PATCH][ACPI] Fix acpi_ev_pci_config_region_setup() to avoid memory leak

2007-07-18 Thread Len Brown
On Wednesday 18 July 2007 18:48, Jesper Juhl wrote: drivers/acpi/events/evrgnini.c applied (after changing to ACPI_FREE()) thanks, -Len - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: [PATCH][ACPI] Fix acpi_ev_pci_config_region_setup() to avoid memory leak

2007-07-18 Thread Andrew Morton
On Thu, 19 Jul 2007 00:48:03 +0200 Jesper Juhl [EMAIL PROTECTED] wrote: Hello, 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