[ibm-acpi-devel] [PATCH 2/3] thinkpad_acpi: Fix a memory leak during module exit

2012-07-29 Thread Li Dongyang
We should free the thinkpad_id.nummodel_str during exit as it's allocated in get_thinkpad_module_data(). Signed-off-by: Li Dongyang --- drivers/platform/x86/thinkpad_acpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platfor

[ibm-acpi-devel] [PATCH 1/3] thinkpad_acpi: Flush the workqueue before freeing tpacpi_leds

2012-07-29 Thread Li Dongyang
0068:f5705f68 [ 73.866676] CR2: 4544 [ 73.866676] ---[ end trace 4d8a1887edca08c5 ]--- [ 73.866676] note: kworker/u:4[62] exited with preempt_count 1 Signed-off-by: Li Dongyang --- drivers/platform/x86/thinkpad_acpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/d

[ibm-acpi-devel] [PATCH 3/3] thinkpad_acpi: Free hotkey_keycode_map after unregistering tpacpi_inputdev

2012-07-29 Thread Li Dongyang
kkt.s.r.q... [ 99.408460] Object f2751990: 6b 6b 6b 6b f8 00 6b 6b 6b 6b 6b 6b 6b 6b 6b a5 ..k. [ 99.408462] Redzone f27519a0: bb bb bb bb Signed-off-by: Li Dongyang --- drivers/platform/x86/thinkpad_acpi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a