diff options
author | Can Erkin Acar <canacar@cvs.openbsd.org> | 2007-11-08 20:27:21 +0000 |
---|---|---|
committer | Can Erkin Acar <canacar@cvs.openbsd.org> | 2007-11-08 20:27:21 +0000 |
commit | 1ed8089e5e0f649aa03fc68755b50eb71165c653 (patch) | |
tree | b6950ed57334c5b487aab34055ccc79efdda76db /sys/dev/acpi/dsdt.h | |
parent | 6c72bf44e549c61117f494a5b41aa10735b22f28 (diff) |
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@
Diffstat (limited to 'sys/dev/acpi/dsdt.h')
-rw-r--r-- | sys/dev/acpi/dsdt.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 <marco@openbsd.org> * @@ -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__ */ |