Re: [PATCH] acpi: Fix memory leak on acpi_scan_init_hotplug() error path

2013-05-15 Thread Rafael J. Wysocki
On Wednesday, May 15, 2013 12:21:11 PM Toshi Kani wrote: > On Wed, 2013-05-15 at 17:49 +0100, Catalin Marinas wrote: > > Following commit 6b772e8f9 (ACPI: Update PNPID match handling for > > notify), the acpi_scan_init_hotplug() calls acpi_set_pnp_ids() which > > allocates acpi_hardware_id and copi

Re: [PATCH] acpi: Fix memory leak on acpi_scan_init_hotplug() error path

2013-05-15 Thread Toshi Kani
On Wed, 2013-05-15 at 17:49 +0100, Catalin Marinas wrote: > Following commit 6b772e8f9 (ACPI: Update PNPID match handling for > notify), the acpi_scan_init_hotplug() calls acpi_set_pnp_ids() which > allocates acpi_hardware_id and copies a few strings (kstrdup). If the > devices does not have hardwa

[PATCH] acpi: Fix memory leak on acpi_scan_init_hotplug() error path

2013-05-15 Thread Catalin Marinas
Following commit 6b772e8f9 (ACPI: Update PNPID match handling for notify), the acpi_scan_init_hotplug() calls acpi_set_pnp_ids() which allocates acpi_hardware_id and copies a few strings (kstrdup). If the devices does not have hardware_id set, the function exits without freeing the previously alloc