Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95464
b: refs/heads/master
c: 9accd46
h: refs/heads/master
v: v3
  • Loading branch information
Lin Ming authored and Len Brown committed Apr 22, 2008
1 parent 136107d commit 85c7dd3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8246934b7cf99d1f0c053d57890775e5d0df9c33
refs/heads/master: 9accd46459b8c068540451fdab07dbfcefaf7280
24 changes: 24 additions & 0 deletions trunk/drivers/acpi/parser/psparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,30 @@ acpi_status acpi_ps_parse_aml(struct acpi_walk_state *walk_state)
* The object is deleted
*/
if (!previous_walk_state->return_desc) {
/*
* In slack mode execution, if there is no return value
* we should implicitly return zero (0) as a default value.
*/
if (acpi_gbl_enable_interpreter_slack &&
!previous_walk_state->
implicit_return_obj) {
previous_walk_state->
implicit_return_obj =
acpi_ut_create_internal_object
(ACPI_TYPE_INTEGER);
if (!previous_walk_state->
implicit_return_obj) {
return_ACPI_STATUS
(AE_NO_MEMORY);
}

previous_walk_state->
implicit_return_obj->
integer.value = 0;
}

/* Restart the calling control method */

status =
acpi_ds_restart_control_method
(walk_state,
Expand Down

0 comments on commit 85c7dd3

Please sign in to comment.