summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMatthew Garrett2010-02-09 20:05:01 +0100
committerMatthew Garrett2010-02-25 17:50:44 +0100
commite551260b233e8dcbdc9d5f238ad4aa1200dc2ea7 (patch)
treecd61e42641fe2b512cb6660ae6c8baf6843159a9 /drivers
parentdell-laptop: Fix platform device unregistration (diff)
downloadkernel-qcow2-linux-e551260b233e8dcbdc9d5f238ad4aa1200dc2ea7.tar.gz
kernel-qcow2-linux-e551260b233e8dcbdc9d5f238ad4aa1200dc2ea7.tar.xz
kernel-qcow2-linux-e551260b233e8dcbdc9d5f238ad4aa1200dc2ea7.zip
dell-laptop: Fix small memory leak
da_tokens was not being freed by dell-laptop on unload. Fix that. Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/platform/x86/dell-laptop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c
index b4c2190e89f9..b13eb6a2cb51 100644
--- a/drivers/platform/x86/dell-laptop.c
+++ b/drivers/platform/x86/dell-laptop.c
@@ -478,6 +478,7 @@ static void __exit dell_exit(void)
platform_device_del(platform_device);
platform_driver_unregister(&platform_driver);
}
+ kfree(da_tokens);
}
module_init(dell_init);