kernel/drivers/acpi/acpica/nswalk.c
.. .. @@ -3,7 +3,7 @@ 3 3 * 4 4 * Module Name: nswalk - Functions for walking the ACPI namespace 5 5 * 6 - * Copyright (C) 2000 - 2018, Intel Corp.6 + * Copyright (C) 2000 - 2020, Intel Corp.7 7 * 8 8 *****************************************************************************/ 9 9 .. .. @@ -169,6 +169,9 @@ 169 169 170 170 if (start_node == ACPI_ROOT_OBJECT) { 171 171 start_node = acpi_gbl_root_node; 172 + if (!start_node) {173 + return_ACPI_STATUS(AE_NO_NAMESPACE);174 + }172 175 } 173 176 174 177 /* Null child means "get first node" */