summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-03-29 19:00:09 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-03-29 19:00:09 +0100
commit6af71633b04036a12d165d03ce6f21145ec5a555 (patch)
tree5ab0e24bd9c8e4f5db52191dc737fe9af9ec1453 /drivers
parenta24118a8a6870fe06dbbd59f915b9ca3662b2ddb (diff)
parent40e2710860e57411ab57a1529c5a2748abbe8a19 (diff)
Merge branch 'acpica'
* acpica: ACPICA: debugger: check status of acpi_evaluate_object() in acpi_db_walk_for_fields()
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/acpica/dbnames.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/acpi/acpica/dbnames.c b/drivers/acpi/acpica/dbnames.c
index b91155ea9c34..c9131259f717 100644
--- a/drivers/acpi/acpica/dbnames.c
+++ b/drivers/acpi/acpica/dbnames.c
@@ -550,8 +550,12 @@ acpi_db_walk_for_fields(acpi_handle obj_handle,
ACPI_FREE(buffer.pointer);
buffer.length = ACPI_ALLOCATE_LOCAL_BUFFER;
- acpi_evaluate_object(obj_handle, NULL, NULL, &buffer);
-
+ status = acpi_evaluate_object(obj_handle, NULL, NULL, &buffer);
+ if (ACPI_FAILURE(status)) {
+ acpi_os_printf("Could Not evaluate object %p\n",
+ obj_handle);
+ return (AE_OK);
+ }
/*
* Since this is a field unit, surround the output in braces
*/