We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2080845 commit 7e1bc0eCopy full SHA for 7e1bc0e
drivers/input/ff-memless.c
@@ -501,6 +501,15 @@ static void ml_ff_destroy(struct ff_device *ff)
501
{
502
struct ml_device *ml = ff->private;
503
504
+ /*
505
+ * Even though we stop all playing effects when tearing down
506
+ * an input device (via input_device_flush() that calls into
507
+ * input_ff_flush() that stops and erases all effects), we
508
+ * do not actually stop the timer, and therefore we should
509
+ * do it here.
510
+ */
511
+ del_timer_sync(&ml->timer);
512
+
513
kfree(ml->private);
514
}
515
0 commit comments