[PATCH] acpica: Fix for _INI regression.

Colin King colin.king at canonical.com
Wed May 8 07:03:14 UTC 2013


From: Colin Ian King <colin.king at canonical.com>

This change fixes a problem introduced in 20130328 where _INI methods are no
longer executed properly because of a memory block that is not initialized
properly.
ACPICA BZ 1016. Tomasz Nowicki <tomasz.nowicki at linaro.org>.

Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
 src/acpica/source/components/namespace/nsinit.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/acpica/source/components/namespace/nsinit.c b/src/acpica/source/components/namespace/nsinit.c
index e6b9d43..e0fafda 100644
--- a/src/acpica/source/components/namespace/nsinit.c
+++ b/src/acpica/source/components/namespace/nsinit.c
@@ -681,6 +681,7 @@ AcpiNsInitOneDevice (
     ACPI_DEBUG_EXEC (AcpiUtDisplayInitPathname (
         ACPI_TYPE_METHOD, DeviceNode, METHOD_NAME__INI));
 
+    ACPI_MEMSET (Info, 0, sizeof (ACPI_EVALUATE_INFO));
     Info->PrefixNode = DeviceNode;
     Info->RelativePathname = METHOD_NAME__INI;
     Info->Parameters = NULL;
-- 
1.8.1.2




More information about the fwts-devel mailing list