[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1252925033-29696-3-git-send-email-corentincj@iksaif.net>
Date: Mon, 14 Sep 2009 12:43:52 +0200
From: Corentin Chary <corentincj@...aif.net>
To: linux-acpi@...r.kernel.org
Cc: linux-kernel <linux-kernel@...r.kernel.org>,
Julia Lawall <julia@...u.dk>,
Alan Jenkins <alan-jenkins@...fmail.co.uk>,
Johannes Berg <johannes@...solutions.net>,
Corentin Chary <corentincj@...aif.net>,
Henrique de Moraes Holschuh <hmh@....eng.br>
Subject: [PATCH 2/3] thinkpad_acpi: fix rfkill memory leak on unload
rfkill_unregister() should always be followed by rfkill_destroy()
Cc: Henrique de Moraes Holschuh <hmh@....eng.br>
Signed-off-by: Corentin Chary <corentincj@...aif.net>
---
drivers/platform/x86/thinkpad_acpi.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index e856008..21c9715 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);
}
--
1.6.4.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists