Input: fix stale timestamp on key autorepeat events
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 25 Mar 2020 17:57:54 +0000 (10:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2020 09:01:57 +0000 (11:01 +0200)
commit381c88a6b948621c5bb33c724d817ee071a605f8
tree7bd1cf55b4c0abae2ca94bbed831493682551b75
parentcd18a7f6a789728e24c014653dfd39de9c7a5289
Input: fix stale timestamp on key autorepeat events

commit 4134252ab7e2c339a54302b88496cb5a89cdbaec upstream.

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: 3b51c44bd693 ("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>
drivers/input/input.c