media: rc: mce_kbd decoder: fix stuck keys
authorSean Young <sean@mess.org>
Sun, 8 Apr 2018 10:36:40 +0000 (06:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jul 2018 09:39:22 +0000 (11:39 +0200)
commit99ebaf4f43dd25e18baf02c994c7939f1257f8a3
tree3a234dc2141a64cbaa883e2d7e9beacf905ad01e
parent1e92e813554a93741666e9f378a83d70405b9076
media: rc: mce_kbd decoder: fix stuck keys

commit 63039c29f7a4ce8a8bd165173840543c0098d7b0 upstream.

The MCE Remote sends a 0 scancode when keys are released. If this is not
received or decoded, then keys can get "stuck"; the keyup event is not
sent since the input_sync() is missing from the timeout handler.

Cc: stable@vger.kernel.org
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/rc/ir-mce_kbd-decoder.c