diff options
author | Corentin Chary <[email protected]> | 2009-09-14 12:43:52 +0200 |
---|---|---|
committer | Len Brown <[email protected]> | 2009-09-19 01:10:34 -0400 |
commit | 5f0dadb4bd259c3b832e19702f552947244edfb9 (patch) | |
tree | 4b5e716ae16ce7e678c6c6c8ce4e5c3a6835cc1f | |
parent | de4c8cc7bddd9c43dc1b85517ab445ffa8163058 (diff) |
thinkpad_acpi: fix rfkill memory leak on unload
rfkill_unregister() should always be followed by rfkill_destroy()
Signed-off-by: Corentin Chary <[email protected]>
Acked-by: Henrique de Moraes Holschuh <[email protected]>
Signed-off-by: Len Brown <[email protected]>
-rw-r--r-- | 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 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); } |