Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2996686imm; Sun, 1 Jul 2018 09:59:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdBMcFW3XpI0EjaCGetE557NuqKUMb7y2P2wJ2E8ZBHVRWQFCRZyHeztNdLGwVy83WRQ6WS X-Received: by 2002:aa7:8298:: with SMTP id s24-v6mr22135257pfm.136.1530464370470; Sun, 01 Jul 2018 09:59:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530464370; cv=none; d=google.com; s=arc-20160816; b=M5gCa0/4k7UMhaZ6OugyP4+ldNT3dEVrQsnqFUe8RsEHtSRzm8Y1U1AxSQQafMMlmv Wb0N4ecqIYUtkdJIBbCquyRIwZk3ik09VpRgcKkegivb+Dl0ey60b/4+Zf2bFkIjFt5A I4kyED/IfyFzOywRHkq8ElW/0tZ+JtO/WI4iWMPi1JjB7EXNhbYxthbNnAKWKZB+faUz lkyngzsNceO1z0mCbub0SF5HnN4BcCozq3QmW8TDaJx3qK8zv2YqVWrFpmCYJ4prmXqi nv1Kg9slfUYKsvxBS09oBkiLnND2V5UJi1qTRKWrusA6yii1YZR8uA9M9UbamLjuYy6G w9HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=KsUpZdb9NuDoYiyCM6G4QQUiwCeXGrphFIXbaXRdoHs=; b=XXMkMo2gBW3UzNek7kMK9Tfmavu/PONscc3SHHjPMbEZZJJ1t7kCpy1hPrCGK/Vv/S 3wfEuBLpRG7J5oXsz2YVwqxPfguGUL2LFtOK05zjcOWLu1I5UNiZ9h2Cr+vYB3+A/7JS Zc7e0wdJeVXMEv9Ixofzh8OuOEu8nK3hBbm4ee0EuOBF1dN6NHfyRgppYwfvfN+6GaJf xsNkvNqKj/OLJL8tIiKn+ZXv9c8gDR/lSJpRsGK5365eFP6SaD2bfgxX/+giyguJK/T+ UT+DcexaFH7XfHKwATltrzrjU29q2Kpg36YuvBE4DMWEShiIwsQmlziZv0nTh4ZqlnNN 2wIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f13-v6si12161488pgq.138.2018.07.01.09.59.15; Sun, 01 Jul 2018 09:59:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964788AbeGAQ44 (ORCPT + 99 others); Sun, 1 Jul 2018 12:56:56 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38112 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934033AbeGAQoq (ORCPT ); Sun, 1 Jul 2018 12:44:46 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id F138D92B; Sun, 1 Jul 2018 16:44:45 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sean Young , Mauro Carvalho Chehab Subject: [PATCH 4.17 178/220] media: rc: mce_kbd decoder: fix stuck keys Date: Sun, 1 Jul 2018 18:23:22 +0200 Message-Id: <20180701160915.662882079@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sean Young 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 Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/rc/ir-mce_kbd-decoder.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/media/rc/ir-mce_kbd-decoder.c +++ b/drivers/media/rc/ir-mce_kbd-decoder.c @@ -130,6 +130,8 @@ static void mce_kbd_rx_timeout(struct ti for (i = 0; i < MCIR2_MASK_KEYS_START; i++) input_report_key(raw->mce_kbd.idev, kbd_keycodes[i], 0); + + input_sync(raw->mce_kbd.idev); } static enum mce_kbd_mode mce_kbd_mode(struct mce_kbd_dec *data)