diff options
author | Lin Ming <ming.m.lin@intel.com> | 2008-07-03 22:51:41 -0400 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2008-08-14 20:11:59 -0400 |
commit | d3ff268a0149fce8835f6d48ab481d5e3321e0f7 (patch) | |
tree | 04d68740e10c2a795edaf7ca7c92292b496b1fc8 /drivers/acpi | |
parent | 2843ae7734075f5d7072cf1230758bf8cf840af7 (diff) |
ACPICA: Fix possible memory leak in Unload() operator
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>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/executer/exconfig.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/executer/exconfig.c b/drivers/acpi/executer/exconfig.c index 2a32c843cb4a..8892b9824fae 100644 --- a/drivers/acpi/executer/exconfig.c +++ b/drivers/acpi/executer/exconfig.c | |||
@@ -479,5 +479,8 @@ acpi_status acpi_ex_unload_table(union acpi_operand_object *ddb_handle) | |||
479 | 479 | ||
480 | acpi_tb_set_table_loaded_flag(table_index, FALSE); | 480 | acpi_tb_set_table_loaded_flag(table_index, FALSE); |
481 | 481 | ||
482 | /* Table unloaded, remove a reference to the ddb_handle object */ | ||
483 | |||
484 | acpi_ut_remove_reference(ddb_handle); | ||
482 | return_ACPI_STATUS(AE_OK); | 485 | return_ACPI_STATUS(AE_OK); |
483 | } | 486 | } |