diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2017-12-14 22:56:53 +0000 |
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2017-12-14 22:56:53 +0000 |
| commit | 9ff5d7eeed8c4043df7a61ffe5fd37b481537884 (patch) | |
| tree | ae5d2fdb93f45dd3fa526aa0d7a67ad8e8c98ec7 /source/compiler/dttable1.c | |
| parent | e692a0ddd0131f04acfda4c63b1a4c0c805feef5 (diff) | |
Notes
Diffstat (limited to 'source/compiler/dttable1.c')
| -rw-r--r-- | source/compiler/dttable1.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/compiler/dttable1.c b/source/compiler/dttable1.c index 138f4f3a1731..9b755509ff09 100644 --- a/source/compiler/dttable1.c +++ b/source/compiler/dttable1.c @@ -596,7 +596,13 @@ DtCompileDbg2 ( Status = DtCompileTable (PFieldList, AcpiDmTableInfoDbg2OemData, &Subtable, TRUE); - if (ACPI_FAILURE (Status)) + if (Status == AE_END_OF_TABLE) + { + /* optional field was not found and we're at the end of the file */ + + goto subtableDone; + } + else if (ACPI_FAILURE (Status)) { return (Status); } @@ -615,7 +621,7 @@ DtCompileDbg2 ( DtInsertSubtable (ParentTable, Subtable); } - +subtableDone: SubtableCount--; DtPopSubtable (); /* Get next Device Information subtable */ } |
