[PATCH] ACPI: fix memleak in drivers/acpi/utils.c Signed-off-by: Daniel Ritz <daniel.ritz@xxxxxx> diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c index f48227f..7b74b5b 100644 --- a/drivers/acpi/utils.c +++ b/drivers/acpi/utils.c @@ -386,7 +386,11 @@ acpi_evaluate_reference(acpi_handle hand } if (package->package.count > ACPI_MAX_HANDLES) { - return AE_NO_MEMORY; + printk(KERN_ERR PREFIX "[Package] has elements > ACPI_MAX_HANDLES (%p)\n", + package); + status = AE_NO_MEMORY; + acpi_util_eval_error(handle, pathname, status); + goto end; } list->count = package->package.count; - To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html