forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/acpi/acpica/nswalk.c
....@@ -3,7 +3,7 @@
33 *
44 * Module Name: nswalk - Functions for walking the ACPI namespace
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -169,6 +169,9 @@
169169
170170 if (start_node == ACPI_ROOT_OBJECT) {
171171 start_node = acpi_gbl_root_node;
172
+ if (!start_node) {
173
+ return_ACPI_STATUS(AE_NO_NAMESPACE);
174
+ }
172175 }
173176
174177 /* Null child means "get first node" */