Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp589975img; Fri, 22 Mar 2019 04:40:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8f50XMMLTi3aNLyoBhVZzuGmob/dTxZDC/Pa0xmpDMagTtIH5bH0Ml0BliWL5ae99njHD X-Received: by 2002:a63:6c87:: with SMTP id h129mr8584206pgc.190.1553254848940; Fri, 22 Mar 2019 04:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553254848; cv=none; d=google.com; s=arc-20160816; b=j3vkWsmQuPpSPYea4KJFP7Hi8ferAU7eipDK3jrkSfBydRKQgyK9SI1z8Wo82nOAhE QYbZVrfoqDGx5xsPAbWRngGITq7kRkYRtY36WfcRqwVjEjOYS/DHQeeMcKVrw7VlZkSs i12gzxJb6rGh4ElZh0zQSndcxyzDfLo3zoUuPJOlfHOhj5Mcwnxhgj8Tx94RwxxZoRLs QoI7RAy6CNTfjeJ63mAaD54TNuVg4Lfhl8oK/DQUBZzIogOcZKBkrBmvl4LnKqTsCJaY JQkYDbLZHNEs3gYbJP5n42bgWKOzkPCWJxBrV9AErt1OhjT6Ed6MH4IkFjJInpaNfH/N ktxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xeuZLUb2u8fHQvkufxVy4BpMOs7x/reTnjUG5th+71Y=; b=eyEjmIxtnUUUVSgEwVgi6wFkykq6YPg3XQWechULhr+jmUyQpch73DH3iLmGkD3Nj2 mkLIphwm0CuCPJPozOBWqixoqFIwgzKzemyFfeBXli4KQvxyQ7Uu6ONPgbPbidGWwn6B Aw1TdEv9H1ADhEb8rdfFmxgIaGzXAqbDjSiOxtjJuoTb/VeFZp7bThxXt5hwALa8osP9 RY6gvc0UV4wtmQYhdi87M7P9uPGygTsGGMaLgiPNVbkyXMfjpog/mncl9btkI8CcCL91 6eE+49lrTABV5dgfPYS+1wecaotrvNG1MY8MWaZcVuUMFNHGtvSq9ZM+mPIjtnBDnhyW u0Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vvfJrUxO; 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 o7si6483159pgh.273.2019.03.22.04.40.33; Fri, 22 Mar 2019 04:40:48 -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; dkim=pass header.i=@kernel.org header.s=default header.b=vvfJrUxO; 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 S1731011AbfCVLkA (ORCPT + 99 others); Fri, 22 Mar 2019 07:40:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:41738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730901AbfCVLj4 (ORCPT ); Fri, 22 Mar 2019 07:39:56 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C80952082C; Fri, 22 Mar 2019 11:39:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553254796; bh=FevHOG6SwR3Puy3FZ5iM7/YaNZ5Mc/xTvP7wHFUqh4k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vvfJrUxOCcTHBaduRM+IKx9mSlJESQgt5rTLX9h87aNovkO+4N8na7Gh7f081OEYn Gf7eg6GR2TJUfMcaNIO0a8C3AfuC6xjolIohLLoN56Wpx1FXY0COHD0lbf8pKChFeG SVsCbe4pa0hKJVy2euz0w+8THVOK1fSylKXNU01M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Torokhov , Sasha Levin Subject: [PATCH 4.9 014/118] Input: matrix_keypad - use flush_delayed_work() Date: Fri, 22 Mar 2019 12:14:46 +0100 Message-Id: <20190322111216.998499378@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322111215.873964544@linuxfoundation.org> References: <20190322111215.873964544@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit a342083abe576db43594a32d458a61fa81f7cb32 ] We should be using flush_delayed_work() instead of flush_work() in matrix_keypad_stop() to ensure that we are not missing work that is scheduled but not yet put in the workqueue (i.e. its delay timer has not expired yet). Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/keyboard/matrix_keypad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/matrix_keypad.c b/drivers/input/keyboard/matrix_keypad.c index c64d87442a62..2e12e31f45c5 100644 --- a/drivers/input/keyboard/matrix_keypad.c +++ b/drivers/input/keyboard/matrix_keypad.c @@ -220,7 +220,7 @@ static void matrix_keypad_stop(struct input_dev *dev) keypad->stopped = true; spin_unlock_irq(&keypad->lock); - flush_work(&keypad->work.work); + flush_delayed_work(&keypad->work); /* * matrix_keypad_scan() will leave IRQs enabled; * we should disable them now. -- 2.19.1