aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJari Vanhala <ext-jari.vanhala@nokia.com>2009-12-04 13:24:21 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2009-12-05 01:16:38 -0500
commit6a47081c37b7dd7810ce19e156c1a3bf11987e9a (patch)
tree8bb327ec15bd02c8997314d22abcaadd5ec69882 /drivers
parenta9b0d0e57de88030527a95edea2722851897b7dd (diff)
Input: fix memory leak in force feedback core
Effects were allocated, but not freed anywhere. Signed-off-by: Jari Vanhala <ext-jari.vanhala@nokia.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/ff-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/ff-core.c b/drivers/input/ff-core.c
index 572d0a712d2a..b2f07aa1604b 100644
--- a/drivers/input/ff-core.c
+++ b/drivers/input/ff-core.c
@@ -369,6 +369,7 @@ void input_ff_destroy(struct input_dev *dev)
369 if (ff->destroy) 369 if (ff->destroy)
370 ff->destroy(ff); 370 ff->destroy(ff);
371 kfree(ff->private); 371 kfree(ff->private);
372 kfree(ff->effects);
372 kfree(ff); 373 kfree(ff);
373 dev->ff = NULL; 374 dev->ff = NULL;
374 } 375 }