Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi hpacel_reg_info() wants a device_t and not an A...



details:   https://anonhg.NetBSD.org/src/rev/7738bd54a982
branches:  trunk
changeset: 769364:7738bd54a982
user:      cegger <cegger%NetBSD.org@localhost>
date:      Wed Sep 07 08:43:20 2011 +0000

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

diffstat:

 sys/dev/acpi/hpacel_acpi.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 916b3e5e2287 -r 7738bd54a982 sys/dev/acpi/hpacel_acpi.c
--- a/sys/dev/acpi/hpacel_acpi.c        Wed Sep 07 07:43:05 2011 +0000
+++ b/sys/dev/acpi/hpacel_acpi.c        Wed Sep 07 08:43:20 2011 +0000
@@ -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 <jruohonen%iki.fi@localhost>
@@ -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))



Home | Main Index | Thread Index | Old Index