aboutsummaryrefslogtreecommitdiff
path: root/source/components/parser/psobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/components/parser/psobject.c')
-rw-r--r--source/components/parser/psobject.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/components/parser/psobject.c b/source/components/parser/psobject.c
index 7edc39e2b7ad..d027f6d9892c 100644
--- a/source/components/parser/psobject.c
+++ b/source/components/parser/psobject.c
@@ -373,7 +373,13 @@ AcpiPsCreateOp (
Op->Common.Flags |= ACPI_PARSEOP_TARGET;
}
}
- else if (ParentScope->Common.AmlOpcode == AML_INCREMENT_OP)
+
+ /*
+ * Special case for both Increment() and Decrement(), where
+ * the lone argument is both a source and a target.
+ */
+ else if ((ParentScope->Common.AmlOpcode == AML_INCREMENT_OP) ||
+ (ParentScope->Common.AmlOpcode == AML_DECREMENT_OP))
{
Op->Common.Flags |= ACPI_PARSEOP_TARGET;
}