[PATCH] ACPI: fix memleak in drivers/acpi/utils.c

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

 



[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

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux