Skip to content

Commit 6af7163

Browse files
committed
Merge branch 'acpica'
* acpica: ACPICA: debugger: check status of acpi_evaluate_object() in acpi_db_walk_for_fields()
2 parents a24118a + 40e2710 commit 6af7163

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/acpi/acpica/dbnames.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,12 @@ acpi_db_walk_for_fields(acpi_handle obj_handle,
550550
ACPI_FREE(buffer.pointer);
551551

552552
buffer.length = ACPI_ALLOCATE_LOCAL_BUFFER;
553-
acpi_evaluate_object(obj_handle, NULL, NULL, &buffer);
554-
553+
status = acpi_evaluate_object(obj_handle, NULL, NULL, &buffer);
554+
if (ACPI_FAILURE(status)) {
555+
acpi_os_printf("Could Not evaluate object %p\n",
556+
obj_handle);
557+
return (AE_OK);
558+
}
555559
/*
556560
* Since this is a field unit, surround the output in braces
557561
*/

0 commit comments

Comments
 (0)