projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2843ae7
)
ACPICA: Fix possible memory leak in Unload() operator
author
Lin Ming
<ming.m.lin@intel.com>
Fri, 4 Jul 2008 02:51:41 +0000
(10:51 +0800)
committer
Andi Kleen
<ak@linux.intel.com>
Fri, 15 Aug 2008 00:11:59 +0000
(
02:11
+0200)
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>
drivers/acpi/executer/exconfig.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/executer/exconfig.c
b/drivers/acpi/executer/exconfig.c
index 2a32c843cb4a384a3557d80293cc4abef5a000ee..8892b9824fae7d8acad9c214356df84c528dc9b1 100644
(file)
--- 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)
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);
}