Commit 66c8569bf990064b3f11e0f211a81a46e0b627ff

Authored by Samu Onkalo
Committed by Linus Torvalds
1 parent d25a8c8115

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/hwmon/lis3lv02d.c
... ... @@ -333,6 +333,7 @@
333 333 if (lis3_dev.irq)
334 334 misc_deregister(&lis3lv02d_misc_device);
335 335 input_unregister_polled_device(lis3_dev.idev);
  336 + input_free_polled_device(lis3_dev.idev);
336 337 lis3_dev.idev = NULL;
337 338 }
338 339 EXPORT_SYMBOL_GPL(lis3lv02d_joystick_disable);