From 459efb91ed1b497733cc1df1be8138fb33039092 Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Sun, 26 Apr 2020 20:28:56 +1000 Subject: ACPICA: Fix bug with upstream code - empty DSDT AML causes page fault --- acpica/src/acpi/psparse.c | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- cgit v1.2.3