diff options
author | Lv Zheng <zetalog@gmail.com> | 2016-10-26 03:40:20 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-10-28 19:57:43 -0400 |
commit | 8121aa26e32012ca89afafa5e503b879950ac0fe (patch) | |
tree | 19dba2b5928c478fc18dde342e8ee827fcfe0c4d /drivers/acpi | |
parent | 25ccd2429fd0af5b9c2c136c8c593491aeabf162 (diff) |
ACPICA: Dispatcher: Fix an unbalanced lock exit path in acpi_ds_auto_serialize_method()
There is a lock unbalanced exit path in acpi_ds_initialize_method(),
this patch corrects it.
Fixes: 441ad11d078f (ACPICA: Dispatcher: Fix a mutex issue for method auto serialization)
Tested-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/acpica/dsmethod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/dsmethod.c b/drivers/acpi/acpica/dsmethod.c index c4028a8dacd5..5997e592e5a6 100644 --- a/drivers/acpi/acpica/dsmethod.c +++ b/drivers/acpi/acpica/dsmethod.c | |||
@@ -128,7 +128,7 @@ acpi_ds_auto_serialize_method(struct acpi_namespace_node *node, | |||
128 | if (ACPI_FAILURE(status)) { | 128 | if (ACPI_FAILURE(status)) { |
129 | acpi_ds_delete_walk_state(walk_state); | 129 | acpi_ds_delete_walk_state(walk_state); |
130 | acpi_ps_free_op(op); | 130 | acpi_ps_free_op(op); |
131 | return_ACPI_STATUS(status); | 131 | goto unlock; |
132 | } | 132 | } |
133 | 133 | ||
134 | walk_state->descending_callback = acpi_ds_detect_named_opcodes; | 134 | walk_state->descending_callback = acpi_ds_detect_named_opcodes; |