summaryrefslogtreecommitdiff
path: root/source/common/ahpredef.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/common/ahpredef.c')
-rw-r--r--source/common/ahpredef.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/common/ahpredef.c b/source/common/ahpredef.c
index edcfa2f04301..5cd1064c6534 100644
--- a/source/common/ahpredef.c
+++ b/source/common/ahpredef.c
@@ -474,6 +474,15 @@ AcpiAhMatchPredefinedName (
const AH_PREDEFINED_NAME *Info;
+ /* Nameseg must start with an underscore */
+
+ if (*Nameseg != '_')
+ {
+ return (NULL);
+ }
+
+ /* Search for a match in the predefined name table */
+
for (Info = AslPredefinedInfo; Info->Name; Info++)
{
if (ACPI_COMPARE_NAME (Nameseg, Info->Name))