projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9b0d0e
)
Input: fix memory leak in force feedback core
author
Jari Vanhala
<ext-jari.vanhala@nokia.com>
Fri, 4 Dec 2009 18:24:21 +0000
(10:24 -0800)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Sat, 5 Dec 2009 06:16:38 +0000
(22:16 -0800)
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>
drivers/input/ff-core.c
patch
|
blob
|
history
diff --git
a/drivers/input/ff-core.c
b/drivers/input/ff-core.c
index
572d0a7
..
b2f07aa
100644
(file)
--- a/
drivers/input/ff-core.c
+++ b/
drivers/input/ff-core.c
@@
-369,6
+369,7
@@
void input_ff_destroy(struct input_dev *dev)
if (ff->destroy)
ff->destroy(ff);
kfree(ff->private);
+ kfree(ff->effects);
kfree(ff);
dev->ff = NULL;
}