Skip to content

Commit

Permalink
ACPICA: Fix possible memory leak in Unload() operator
Browse files Browse the repository at this point in the history
The DdbHandle returned by Load() does not have its reference count
decremented during unload, leading to a memory leak. Lin Ming.

Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
  • Loading branch information
Lin Ming authored and Andi Kleen committed Aug 15, 2008
1 parent 2843ae7 commit d3ff268
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/acpi/executer/exconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,5 +479,8 @@ acpi_status acpi_ex_unload_table(union acpi_operand_object *ddb_handle)

acpi_tb_set_table_loaded_flag(table_index, FALSE);

/* Table unloaded, remove a reference to the ddb_handle object */

acpi_ut_remove_reference(ddb_handle);
return_ACPI_STATUS(AE_OK);
}

0 comments on commit d3ff268

Please sign in to comment.