summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2009-09-19 08:11:06 +0200
committerLen Brown <len.brown@intel.com>2009-09-19 08:11:06 +0200
commitb963bd39c9000328f6ce4f12aa52abbb0c68ee91 (patch)
tree1c4b1d5ed3c568903d3734173a3f08ad6741e351
parentMerge branch 'processor-procfs-2.6.32' into release (diff)
parentthinkpad_acpi: fix rfkill memory leak on unload (diff)
downloadlinux-b963bd39c9000328f6ce4f12aa52abbb0c68ee91.tar.xz
linux-b963bd39c9000328f6ce4f12aa52abbb0c68ee91.zip
Merge branch 'thinkpad' into release
-rw-r--r--drivers/platform/x86/thinkpad_acpi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index 955adf67e8f0..f78d27503925 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -1278,6 +1278,7 @@ static void tpacpi_destroy_rfkill(const enum tpacpi_rfk_id id)
tp_rfk = tpacpi_rfkill_switches[id];
if (tp_rfk) {
rfkill_unregister(tp_rfk->rfkill);
+ rfkill_destroy(tp_rfk->rfkill);
tpacpi_rfkill_switches[id] = NULL;
kfree(tp_rfk);
}