From d85f3935ecfade498f9753c400c8442c8d7cae67 Mon Sep 17 00:00:00 2001 From: Stanislav Sedov Date: Sat, 27 Dec 2008 20:48:11 +0000 Subject: [PATCH] - Fix incorrect array declaration that was causing the stack overflow on some (most?) Asus laptops. Discussed with: rpaulo Approved by: kib (mentor) MFC after: 2 weeks --- sys/dev/acpi_support/acpi_asus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/acpi_support/acpi_asus.c b/sys/dev/acpi_support/acpi_asus.c index cb3ded98908f..36cc4f94cc18 100644 --- a/sys/dev/acpi_support/acpi_asus.c +++ b/sys/dev/acpi_support/acpi_asus.c @@ -976,7 +976,7 @@ acpi_asus_sysctl_set(struct acpi_asus_softc *sc, int method, int arg) { ACPI_STATUS status = AE_OK; ACPI_OBJECT_LIST acpiargs; - ACPI_OBJECT acpiarg[0]; + ACPI_OBJECT acpiarg[1]; ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); ACPI_SERIAL_ASSERT(asus);