summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgwk <gwk@openbsd.org>2006-07-30 05:30:45 +0000
committergwk <gwk@openbsd.org>2006-07-30 05:30:45 +0000
commit4ac989666d977cd48b257a0f7812655fe01fa27d (patch)
tree9c937570488d86c75099828418633852ef6ad5e7
parentsync (diff)
downloadwireguard-openbsd-4ac989666d977cd48b257a0f7812655fe01fa27d.tar.xz
wireguard-openbsd-4ac989666d977cd48b257a0f7812655fe01fa27d.zip
Donot pass a uninitialized pointer to aml_register_notify(), should fix PR5153
awaiting confirmation of this from the submitter, but its wrong regardless. ok marco@, canacar@
-rw-r--r--sys/dev/acpi/acpitz.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpitz.c b/sys/dev/acpi/acpitz.c
index 9cdf7ce1b3a..dd255b16881 100644
--- a/sys/dev/acpi/acpitz.c
+++ b/sys/dev/acpi/acpitz.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpitz.c,v 1.1 2006/05/19 09:24:32 canacar Exp $ */
+/* $OpenBSD: acpitz.c,v 1.2 2006/07/30 05:30:45 gwk Exp $ */
/*
* Copyright (c) 2006 Can Erkin Acar <canacar@openbsd.org>
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
@@ -112,7 +112,7 @@ acpitz_attach(struct device *parent, struct device *self, void *aux)
printf(", critical temperature: %u degC",
(unsigned)(sc->sc_crt - 2732) / 10);
- aml_register_notify(sc->sc_devnode->parent, aa->aaa_dev,
+ aml_register_notify(sc->sc_devnode->parent, NULL,
acpitz_notify, sc);
memset(&sc->sc_sens, 0, sizeof(sc->sc_sens));