Module Name: src Committed By: jruoho Date: Thu Nov 4 20:08:12 UTC 2010
Modified Files: src/sys/dev/acpi: acpi_display.c Log Message: Initialize pointers to NULL to avoid accidentally free(9)'ing garbage. Should address the panic reported by Alan Bueno in PR # 44042. The root cause (an empty _DOD) is yet to be determined. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/dev/acpi/acpi_display.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/acpi/acpi_display.c diff -u src/sys/dev/acpi/acpi_display.c:1.5 src/sys/dev/acpi/acpi_display.c:1.6 --- src/sys/dev/acpi/acpi_display.c:1.5 Fri Oct 29 09:04:38 2010 +++ src/sys/dev/acpi/acpi_display.c Thu Nov 4 20:08:12 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_display.c,v 1.5 2010/10/29 09:04:38 gsutre Exp $ */ +/* $NetBSD: acpi_display.c,v 1.6 2010/11/04 20:08:12 jruoho Exp $ */ /*- * Copyright (c) 2010 The NetBSD Foundation, Inc. @@ -66,7 +66,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: acpi_display.c,v 1.5 2010/10/29 09:04:38 gsutre Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi_display.c,v 1.6 2010/11/04 20:08:12 jruoho Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -1416,6 +1416,7 @@ return NULL; oi = NULL; + pkg = NULL; rv = acpidisp_eval_package(hdl, "_DOD", &pkg, 1); if (ACPI_FAILURE(rv)) @@ -1600,6 +1601,7 @@ return NULL; bc = NULL; + pkg = NULL; rv = acpidisp_eval_package(hdl, "_BCL", &pkg, 2); if (ACPI_FAILURE(rv))