|
@@ -212,6 +212,7 @@ acpi_status
|
|
|
acpi_ds_method_error(acpi_status status, struct acpi_walk_state *walk_state)
|
|
|
{
|
|
|
u32 aml_offset;
|
|
|
+ acpi_name name = 0;
|
|
|
|
|
|
ACPI_FUNCTION_ENTRY();
|
|
|
|
|
@@ -237,10 +238,13 @@ acpi_ds_method_error(acpi_status status, struct acpi_walk_state *walk_state)
|
|
|
walk_state->parser_state.
|
|
|
aml_start);
|
|
|
|
|
|
- status = acpi_gbl_exception_handler(status,
|
|
|
- walk_state->method_node ?
|
|
|
- walk_state->method_node->
|
|
|
- name.integer : 0,
|
|
|
+ if (walk_state->method_node) {
|
|
|
+ name = walk_state->method_node->name.integer;
|
|
|
+ } else if (walk_state->deferred_node) {
|
|
|
+ name = walk_state->deferred_node->name.integer;
|
|
|
+ }
|
|
|
+
|
|
|
+ status = acpi_gbl_exception_handler(status, name,
|
|
|
walk_state->opcode,
|
|
|
aml_offset, NULL);
|
|
|
acpi_ex_enter_interpreter();
|