aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2010-02-09 14:05:01 -0500
committerMatthew Garrett <mjg@redhat.com>2010-02-25 11:50:44 -0500
commite551260b233e8dcbdc9d5f238ad4aa1200dc2ea7 (patch)
treecd61e42641fe2b512cb6660ae6c8baf6843159a9 /drivers/platform
parentfacd61d7b70d9c061f08e0b76976f7f833888a70 (diff)
downloadkernel_samsung_aries-e551260b233e8dcbdc9d5f238ad4aa1200dc2ea7.zip
kernel_samsung_aries-e551260b233e8dcbdc9d5f238ad4aa1200dc2ea7.tar.gz
kernel_samsung_aries-e551260b233e8dcbdc9d5f238ad4aa1200dc2ea7.tar.bz2
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/platform')
-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 b4c2190..b13eb6a 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);