From 1ed8089e5e0f649aa03fc68755b50eb71165c653 Mon Sep 17 00:00:00 2001 From: Can Erkin Acar Date: Thu, 8 Nov 2007 20:27:21 +0000 Subject: convert the value to a string instead of using aml_val2str() which returns invalid pointers if the value is not a string, causing acpibat to panic, as reported by mbalmer@ and Alexey Suslikov. tested by Alexey Suslikov, ok marco@ --- sys/dev/acpi/dsdt.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/acpi/dsdt.h') diff --git a/sys/dev/acpi/dsdt.h b/sys/dev/acpi/dsdt.h index fc7832d9149..a0fe51d287b 100644 --- a/sys/dev/acpi/dsdt.h +++ b/sys/dev/acpi/dsdt.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dsdt.h,v 1.29 2007/09/13 03:43:22 weingart Exp $ */ +/* $OpenBSD: dsdt.h,v 1.30 2007/11/08 20:27:20 canacar Exp $ */ /* * Copyright (c) 2005 Marco Peereboom * @@ -245,4 +245,6 @@ void aml_hashopcodes(void); void aml_foreachpkg(struct aml_value *, int, void (*fn)(struct aml_value *, void *), void *); +const char *aml_val_to_string(const struct aml_value *); + #endif /* __DEV_ACPI_DSDT_H__ */ -- cgit v1.2.3