mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Input: fix memory leak in force feedback core
Effects were allocated, but not freed anywhere. Signed-off-by: Jari Vanhala <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
This commit is contained in:
parent
a9b0d0e57d
commit
6a47081c37
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue