Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9111662pxu; Mon, 28 Dec 2020 06:57:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJxoc8krugx7bzYOFE2fQ4dQDoIxkJPOmyxNjvNMq4TQmxlGBf5ziS97gkp8kQLuIugjqGEo X-Received: by 2002:aa7:c802:: with SMTP id a2mr41995284edt.120.1609167445193; Mon, 28 Dec 2020 06:57:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609167445; cv=none; d=google.com; s=arc-20160816; b=hlcM6jLjc3VcDYse9laxX8pRmd1sTp8tUMvoyt3viyGqM6LQ5fNObv95oTWqgMuwOF ONc8qyJCS5ifrkbK39HtmrbVKpDdMcf8USMtQ8uJwLCcm1xajcAVxvzPB2BQIrK13suU VXZJhxPpj4F1aujYo16MS6jf5/HHOtC3GwCcmoYQAwmUrSUeyeK8CeHKhzW5PLaK9kkT VDH3q+nTaIAJxnwpQWQZRSK11XPUk6Rf0oL5og4wGr6TNhcons5rOU46vV8Y3JR9qNaw DG+08a+YTB+bCSyZiiTw2lkz8ZdX1F+ikN5FtEmrojnZjoKHl+EVJl2tCY05iZSW6B3o Ip9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Go6sL/1n2Ao3Rbw3y6L+5ZCGT5czqmCyHs2gmwBOPro=; b=EkacfkbWK/Ea2cMR3vfZv0Ii1SgcKVLuNu6QnUh93LQgPegJW/K3Zp6sfuDl9d2tdG yptz7wt6WGyXJMyHD7XlJ9bWKqjbtwfK5BGnchSlvNGsitBHkHedhUKjdWlEPNosB/BM JduLqmXP4rX+WKhOkjcfg8vfR0fII2OlfDePeLHVpLfQoG7GwRwi+IF50LDE7xkGazQf 13YsFGtg/Zfg+QqkB/42QID7wo4BRM+DjXUXVu5Lf9a1ZBrGkQy6uNssO8PQALeedhQN oUa/uF/umt0s88JAZ6sV//PSeCqrmkDeunIaQN067b6Kt1bwdjqVj6gLVHz7MESIKNNN MYzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g9WeqvAl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si18399482ejx.102.2020.12.28.06.57.01; Mon, 28 Dec 2020 06:57:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g9WeqvAl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2441381AbgL1ORL (ORCPT + 99 others); Mon, 28 Dec 2020 09:17:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:51890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2441309AbgL1OQ6 (ORCPT ); Mon, 28 Dec 2020 09:16:58 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8C525224D2; Mon, 28 Dec 2020 14:16:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165003; bh=u7U7ZDOaWHRgLeeX7erQMopLpmQycItBIAlMY5QEK9M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g9WeqvAlaYVKzv51p6dQB0SiksxayVxaKOO91hl0vcbSzPV9nVl2huoCUPw2nts36 aUT2O4SR94S6xn/lPR4XtOEagVoQi9nacFps8bpExLBYnsPrQGACS+Fa2yM3fL3CSU 0jHv21ms98WL21h9kE4Pl2hF3PoO976iifFR/LEE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Samuel Thibault , Yang Yingliang , Sasha Levin Subject: [PATCH 5.10 374/717] speakup: fix uninitialized flush_lock Date: Mon, 28 Dec 2020 13:46:12 +0100 Message-Id: <20201228125038.927642989@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yang Yingliang [ Upstream commit d1b928ee1cfa965a3327bbaa59bfa005d97fa0fe ] The flush_lock is uninitialized, use DEFINE_SPINLOCK to define and initialize flush_lock. Fixes: c6e3fd22cd53 ("Staging: add speakup to the staging directory") Reported-by: Hulk Robot Reviewed-by: Samuel Thibault Signed-off-by: Yang Yingliang Link: https://lore.kernel.org/r/20201117012229.3395186-1-yangyingliang@huawei.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/accessibility/speakup/speakup_dectlk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/accessibility/speakup/speakup_dectlk.c b/drivers/accessibility/speakup/speakup_dectlk.c index 780214b5ca16e..ab6d61e80b1cb 100644 --- a/drivers/accessibility/speakup/speakup_dectlk.c +++ b/drivers/accessibility/speakup/speakup_dectlk.c @@ -37,7 +37,7 @@ static unsigned char get_index(struct spk_synth *synth); static int in_escape; static int is_flushing; -static spinlock_t flush_lock; +static DEFINE_SPINLOCK(flush_lock); static DECLARE_WAIT_QUEUE_HEAD(flush); static struct var_t vars[] = { -- 2.27.0