Skip to contentSkip to conversation

LIS3LV02D: Correct memory leak in

RFC PATCH Superseded Samu Onkalo 1 participant 1 message Nov 3, 2009 Hardware monitoring

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

RFC PATCH 2/10 LIS3LV02D: Correct memory leak in

polled input device itself was not free'd.

---
 drivers/hwmon/lis3lv02d.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/hwmon/lis3lv02d.c +1 -0
index 7f43a3b..dbd0b05 100644
@@ -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);
Signature · 7 lines
1.5.6.3


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors