Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9454710pxu; Mon, 28 Dec 2020 17:09:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4j/pGDRim8fewR3KKirXg6xzU+kcYW1mHGZC5XmzqQIIGxXo2ba0h/nwlMMhQNX0IxwUs X-Received: by 2002:a17:906:e84:: with SMTP id p4mr30737283ejf.141.1609204182315; Mon, 28 Dec 2020 17:09:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609204182; cv=none; d=google.com; s=arc-20160816; b=H1aORizNoefWK0RlYkD6iyP9EjSAxXmEFSx8zWGXtLhjIsm0GkxvIqhD8F9T/xUKmi o+fvJEUQSLTV/ClSba8LiMg4Eymh8I//R7rNBfDFHEHRJlJJrk443CtiO6p5M+oZf93p 16xCK9K8MReM4HK5nZqwhFNz+9rgRgGOx+1c5He/m4Jb/jwdXvZjZ5YJkeDuIYsSni5q 0dml5OEpmFO6sn/CRPzKQjWGzBlK5vd1csrgft4/EaeQLyG8s2Fk2ECOGkHN5gvEaxOT hNbgndibkap7511Dy9gzU+0iO2cIEI40ZL+8vVcmfkPD0W80TYm3TxfOdGdlI0Xg16CV fvng== 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=XJ4nVoTJC1uajWm8vRuh34/8nTN2P4ERYTa18gJ0CWc=; b=RIyJNJRIkAr04Jq1GpeYtUCDY+gOiwIhrSCd+6QzXJbtlax+0NtyJUivBP7RDCXPAW noH0nvmM8MIUYpH1PNi6N58CxTeTmrrfLfBHOVLhxeFT8H/1wgHimw9vKO27iwPW7HmB E/HWX5x6FXKHBifVqtkHXiR6fKLOR+hfMpzwNjWWbvK2aMP2hxs+V+hf4hLm3sscYCbU oA49vMj1SVAkvszRLzIXxoAMzSmFUikw8SsCYi3Cw4GCinpc2fiz/SB4WiJ6DUhHImYv 9Bj5j4heYPO3FghVBnvKDwBBaA/A7MRSMtn8byttnff5NBWpNxrhScpfnCrO0sjxR25m VITg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GDfeahZ7; 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 df21si20561804edb.207.2020.12.28.17.09.20; Mon, 28 Dec 2020 17:09:42 -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=GDfeahZ7; 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 S2441948AbgL1Qcj (ORCPT + 99 others); Mon, 28 Dec 2020 11:32:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:60224 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730365AbgL1NEI (ORCPT ); Mon, 28 Dec 2020 08:04:08 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 332C2208D5; Mon, 28 Dec 2020 13:03:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609160607; bh=Nz0ImhC7KydCH0QTf1+HHM2n1ZeQ326HKF2Q51HEXgg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GDfeahZ7KxmBeLsDWW2iUt+CN1fAMKr7JpBYS0xERnZuJcVUGRMNGY63Tejo1AS/v vwMZ2Ji5THYUepl7EhTRMc5J7HkEbhCsDYqbAGS6oqDnjowREGWPuuty/onMP1CPlT k1oFSNjhUG+1VVEz8t5/bSwA+COuac8sfVA73+kE= 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 4.9 108/175] speakup: fix uninitialized flush_lock Date: Mon, 28 Dec 2020 13:49:21 +0100 Message-Id: <20201228124858.484669106@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124853.216621466@linuxfoundation.org> References: <20201228124853.216621466@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/staging/speakup/speakup_dectlk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/speakup/speakup_dectlk.c b/drivers/staging/speakup/speakup_dectlk.c index 764656759fbf4..1079b11fff4bc 100644 --- a/drivers/staging/speakup/speakup_dectlk.c +++ b/drivers/staging/speakup/speakup_dectlk.c @@ -47,7 +47,7 @@ static unsigned char get_index(void); 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