summaryrefslogtreecommitdiff
path: root/compiler/dtfield.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/dtfield.c')
-rw-r--r--compiler/dtfield.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler/dtfield.c b/compiler/dtfield.c
index 4b631b6cf5834..8c9885bb9df13 100644
--- a/compiler/dtfield.c
+++ b/compiler/dtfield.c
@@ -284,6 +284,7 @@ DtCompileInteger (
{
UINT64 Value;
UINT64 MaxValue;
+ ACPI_STATUS Status;
/* Output buffer byte length must be in range 1-8 */
@@ -297,7 +298,11 @@ DtCompileInteger (
/* Resolve integer expression to a single integer value */
- Value = DtResolveIntegerExpression (Field);
+ Status = DtResolveIntegerExpression (Field, &Value);
+ if (ACPI_FAILURE (Status))
+ {
+ return;
+ }
/* Ensure that reserved fields are set to zero */
/* TBD: should we set to zero, or just make this an ERROR? */