diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-03-15 18:36:54 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-03-15 18:36:54 +0000 |
commit | 455dea0141a10eb7483a6230db513464f2c8236f (patch) | |
tree | 8d050ee31e4366a4465f48c88eb8ac4ffcf8328e /sys/dev/acpi/dsdt.c | |
parent | 43651aa2c96d2ffb1ed048fd230f15e88decd5d6 (diff) |
Allow multiple backslashes at the start of a namespace path. It is pretty
clear this is not supposed to happen, but unfortunately the description of
the ECDT table in the standard document has a path that starts with two
backslashes so that's what some vendors used.
From Christophe Staiesse.
ok deraadt@
Diffstat (limited to 'sys/dev/acpi/dsdt.c')
-rw-r--r-- | sys/dev/acpi/dsdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/dsdt.c b/sys/dev/acpi/dsdt.c index 50bfaad64b2..1b3261e6750 100644 --- a/sys/dev/acpi/dsdt.c +++ b/sys/dev/acpi/dsdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsdt.c,v 1.192 2012/03/10 21:18:59 kettenis Exp $ */ +/* $OpenBSD: dsdt.c,v 1.193 2012/03/15 18:36:53 kettenis Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> * @@ -4085,7 +4085,7 @@ aml_searchname(struct aml_node *root, const void *vname) int i; dnprintf(25,"Searchname: %s:%s = ", aml_nodename(root), vname); - if (*name == AMLOP_ROOTCHAR) { + while (*name == AMLOP_ROOTCHAR) { root = &aml_root; name++; } |