diff options
Diffstat (limited to 'drivers/acpi/parser/psxface.c')
-rw-r--r-- | drivers/acpi/parser/psxface.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/acpi/parser/psxface.c b/drivers/acpi/parser/psxface.c index dba893648e84..5279b51e7787 100644 --- a/drivers/acpi/parser/psxface.c +++ b/drivers/acpi/parser/psxface.c | |||
@@ -138,11 +138,14 @@ acpi_psx_execute ( | |||
138 | * objects (such as Operation Regions) can be created during the | 138 | * objects (such as Operation Regions) can be created during the |
139 | * first pass parse. | 139 | * first pass parse. |
140 | */ | 140 | */ |
141 | obj_desc->method.owning_id = acpi_ut_allocate_owner_id (ACPI_OWNER_TYPE_METHOD); | 141 | status = acpi_ut_allocate_owner_id (&obj_desc->method.owner_id); |
142 | if (ACPI_FAILURE (status)) { | ||
143 | goto cleanup2; | ||
144 | } | ||
142 | 145 | ||
143 | /* Create and initialize a new walk state */ | 146 | /* Create and initialize a new walk state */ |
144 | 147 | ||
145 | walk_state = acpi_ds_create_walk_state (obj_desc->method.owning_id, | 148 | walk_state = acpi_ds_create_walk_state (obj_desc->method.owner_id, |
146 | NULL, NULL, NULL); | 149 | NULL, NULL, NULL); |
147 | if (!walk_state) { | 150 | if (!walk_state) { |
148 | status = AE_NO_MEMORY; | 151 | status = AE_NO_MEMORY; |