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/dtcompile.c | |
| parent | e692a0ddd0131f04acfda4c63b1a4c0c805feef5 (diff) | |
Diffstat (limited to 'source/compiler/dtcompile.c')
| -rw-r--r-- | source/compiler/dtcompile.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/compiler/dtcompile.c b/source/compiler/dtcompile.c index 0823196feb1c7..47f72eb31e67d 100644 --- a/source/compiler/dtcompile.c +++ b/source/compiler/dtcompile.c @@ -559,10 +559,18 @@ DtCompileTable ( ACPI_STATUS Status = AE_OK; - if (!Field || !*Field) + if (!Field) { return (AE_BAD_PARAMETER); } + if (!*Field) + { + /* + * The field list is empty, this means that we are out of fields to + * parse. In other words, we are at the end of the table. + */ + return (AE_END_OF_TABLE); + } /* Ignore optional subtable if name does not match */ |
