summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorSamu Onkalo <samu.p.onkalo@nokia.com>2009-12-15 03:01:39 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-15 17:53:36 +0100
commit66c8569bf990064b3f11e0f211a81a46e0b627ff (patch)
tree8e2a9b2b310b8fa4a7d097427be6ee35a01d1cd5 /drivers/hwmon
parentlis3lv02d: send sync event (diff)
downloadlinux-66c8569bf990064b3f11e0f211a81a46e0b627ff.tar.xz
linux-66c8569bf990064b3f11e0f211a81a46e0b627ff.zip
lis3lv02d: correct memory leak in module unload
polled input device itself was not free'd. Signed-off-by: Samu Onkalo <samu.p.onkalo@nokia.com> Tested-by: Éric Piel <eric.piel@tremplin-utc.net> Acked-by: Éric Piel <eric.piel@tremplin-utc.net> Cc: Pavel Machek <pavel@ucw.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--drivers/hwmon/lis3lv02d.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/lis3lv02d.c b/drivers/hwmon/lis3lv02d.c
index 7f43a3b62a24..dbd0b055d4b9 100644
--- a/drivers/hwmon/lis3lv02d.c
+++ b/drivers/hwmon/lis3lv02d.c
@@ -333,6 +333,7 @@ void lis3lv02d_joystick_disable(void)
if (lis3_dev.irq)
misc_deregister(&lis3lv02d_misc_device);
input_unregister_polled_device(lis3_dev.idev);
+ input_free_polled_device(lis3_dev.idev);
lis3_dev.idev = NULL;
}
EXPORT_SYMBOL_GPL(lis3lv02d_joystick_disable);