Skip to content

Commit

Permalink
ACPICA: Fix possible memory leak in dispatcher error path.
Browse files Browse the repository at this point in the history
On error, delete mutex object created during method mutex creation.
Reported by [email protected].

Signed-off-by: Tim Gardner <[email protected]>
Signed-off-by: Bob Moore <[email protected]>
Signed-off-by: Lv Zheng <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
rtg-canonical authored and rafaeljw committed Jan 10, 2013
1 parent e81a52b commit 78d025e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/acpi/acpica/dsmethod.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ acpi_ds_create_method_mutex(union acpi_operand_object *method_desc)

status = acpi_os_create_mutex(&mutex_desc->mutex.os_mutex);
if (ACPI_FAILURE(status)) {
acpi_ut_delete_object_desc(mutex_desc);
return_ACPI_STATUS(status);
}

Expand Down

0 comments on commit 78d025e

Please sign in to comment.