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:
e03e389
)
thinkpad_acpi: Fix a memory leak during module exit
author
Li Dongyang
<jerry87905@gmail.com>
Wed, 25 Jul 2012 00:45:08 +0000
(10:45 +1000)
committer
Matthew Garrett
<mjg@redhat.com>
Sat, 28 Jul 2012 04:28:56 +0000
(
00:28
-0400)
We should free the thinkpad_id.nummodel_str during exit as it's allocated
in get_thinkpad_module_data().
Signed-off-by: Li Dongyang <Jerry87905@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/thinkpad_acpi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/platform/x86/thinkpad_acpi.c
b/drivers/platform/x86/thinkpad_acpi.c
index c85b66602ee1baa8f01ea9314a39b04b62d0e6f8..ae203558ac9022f5a442b11cf0bbeab4dc93a86b 100644
(file)
--- a/
drivers/platform/x86/thinkpad_acpi.c
+++ b/
drivers/platform/x86/thinkpad_acpi.c
@@
-8970,6
+8970,7
@@
static void thinkpad_acpi_module_exit(void)
kfree(thinkpad_id.bios_version_str);
kfree(thinkpad_id.ec_version_str);
kfree(thinkpad_id.model_str);
+ kfree(thinkpad_id.nummodel_str);
}