diff options
Diffstat (limited to 'drivers/acpi/dispatcher/dswstate.c')
-rw-r--r-- | drivers/acpi/dispatcher/dswstate.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/acpi/dispatcher/dswstate.c b/drivers/acpi/dispatcher/dswstate.c index 82c1e219bf15..7817e5522679 100644 --- a/drivers/acpi/dispatcher/dswstate.c +++ b/drivers/acpi/dispatcher/dswstate.c | |||
@@ -703,7 +703,7 @@ acpi_ds_init_aml_walk(struct acpi_walk_state *walk_state, | |||
703 | struct acpi_namespace_node *method_node, | 703 | struct acpi_namespace_node *method_node, |
704 | u8 * aml_start, | 704 | u8 * aml_start, |
705 | u32 aml_length, | 705 | u32 aml_length, |
706 | struct acpi_parameter_info *info, u8 pass_number) | 706 | struct acpi_evaluate_info *info, u8 pass_number) |
707 | { | 707 | { |
708 | acpi_status status; | 708 | acpi_status status; |
709 | struct acpi_parse_state *parser_state = &walk_state->parser_state; | 709 | struct acpi_parse_state *parser_state = &walk_state->parser_state; |
@@ -825,9 +825,12 @@ void acpi_ds_delete_walk_state(struct acpi_walk_state *walk_state) | |||
825 | return; | 825 | return; |
826 | } | 826 | } |
827 | 827 | ||
828 | /* There should not be any open scopes */ | ||
829 | |||
828 | if (walk_state->parser_state.scope) { | 830 | if (walk_state->parser_state.scope) { |
829 | ACPI_ERROR((AE_INFO, "%p walk still has a scope list", | 831 | ACPI_ERROR((AE_INFO, "%p walk still has a scope list", |
830 | walk_state)); | 832 | walk_state)); |
833 | acpi_ps_cleanup_scope(&walk_state->parser_state); | ||
831 | } | 834 | } |
832 | 835 | ||
833 | /* Always must free any linked control states */ | 836 | /* Always must free any linked control states */ |