summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/dbmethod.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpica/dbmethod.c')
-rw-r--r--drivers/acpi/acpica/dbmethod.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/dbmethod.c b/drivers/acpi/acpica/dbmethod.c
index d8b7a0fe92ec..76a15b6ffc5d 100644
--- a/drivers/acpi/acpica/dbmethod.c
+++ b/drivers/acpi/acpica/dbmethod.c
@@ -302,6 +302,10 @@ acpi_status acpi_db_disassemble_method(char *name)
}
status = acpi_ut_allocate_owner_id(&obj_desc->method.owner_id);
+ if (ACPI_FAILURE(status)) {
+ return (status);
+ }
+
walk_state->owner_id = obj_desc->method.owner_id;
/* Push start scope on scope stack and make it current */