mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
Input: fix stale timestamp on key autorepeat events
commit4134252ab7upstream. We need to refresh timestamp when emitting key autorepeat events, otherwise they will carry timestamp of the original key press event. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=206929 Fixes:3b51c44bd6("Input: allow drivers specify timestamp for input events") Cc: stable@vger.kernel.org Reported-by: teika kazura <teika@gmx.com> Tested-by: teika kazura <teika@gmx.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
cd18a7f6a7
commit
381c88a6b9
@@ -190,6 +190,7 @@ static void input_repeat_key(struct timer_list *t)
|
|||||||
input_value_sync
|
input_value_sync
|
||||||
};
|
};
|
||||||
|
|
||||||
|
input_set_timestamp(dev, ktime_get());
|
||||||
input_pass_values(dev, vals, ARRAY_SIZE(vals));
|
input_pass_values(dev, vals, ARRAY_SIZE(vals));
|
||||||
|
|
||||||
if (dev->rep[REP_PERIOD])
|
if (dev->rep[REP_PERIOD])
|
||||||
|
|||||||
Reference in New Issue
Block a user