diff options
author | Damien Zammit <damien@zamaudio.com> | 2020-04-26 20:28:56 +1000 |
---|---|---|
committer | Damien Zammit <damien@zamaudio.com> | 2020-04-26 20:28:56 +1000 |
commit | 459efb91ed1b497733cc1df1be8138fb33039092 (patch) | |
tree | 5fbcbab0d38c36ed2590472ef8253d6f4a69f23e | |
parent | dd63522f8319b253c2d82b42d1f717255499ce8c (diff) |
ACPICA: Fix bug with upstream code - empty DSDT AML causes page fault
-rw-r--r-- | acpica/src/acpi/psparse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/acpica/src/acpi/psparse.c b/acpica/src/acpi/psparse.c index ff85f646..3e988bb9 100644 --- a/acpica/src/acpi/psparse.c +++ b/acpica/src/acpi/psparse.c @@ -422,6 +422,10 @@ acpi_status acpi_ps_parse_aml(struct acpi_walk_state *walk_state) return_ACPI_STATUS(AE_BAD_ADDRESS); } + if (!walk_state->parser_state.aml_size) { + return_ACPI_STATUS(AE_OK); + } + /* Create and initialize a new thread state */ thread = acpi_ut_create_thread_state(); |