Module Name:    src
Committed By:   cegger
Date:           Wed Sep  7 08:43:20 UTC 2011

Modified Files:
        src/sys/dev/acpi: hpacel_acpi.c

Log Message:
hpacel_reg_info() wants a device_t and not an ACPI_HANDLE.
Fixes NULL pointer dereference in hpacel_reg_info().


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/acpi/hpacel_acpi.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/hpacel_acpi.c
diff -u src/sys/dev/acpi/hpacel_acpi.c:1.2 src/sys/dev/acpi/hpacel_acpi.c:1.3
--- src/sys/dev/acpi/hpacel_acpi.c:1.2	Wed Jul 13 10:59:35 2011
+++ src/sys/dev/acpi/hpacel_acpi.c	Wed Sep  7 08:43:20 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: hpacel_acpi.c,v 1.2 2011/07/13 10:59:35 jruoho Exp $ */
+/*	$NetBSD: hpacel_acpi.c,v 1.3 2011/09/07 08:43:20 cegger Exp $ */
 
 /*-
  * Copyright (c) 2009, 2011 Jukka Ruohonen <jruoho...@iki.fi>
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hpacel_acpi.c,v 1.2 2011/07/13 10:59:35 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpacel_acpi.c,v 1.3 2011/09/07 08:43:20 cegger Exp $");
 
 #include <sys/param.h>
 #include <sys/module.h>
@@ -324,7 +324,7 @@
 	/*
 	 * Update the register information.
 	 */
-	(void)hpacel_reg_info(hdl);
+	(void)hpacel_reg_info(self);
 
 out:
 	if (ACPI_FAILURE(rv))

Reply via email to