Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9044916pxu; Mon, 28 Dec 2020 05:17:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVXh9jZOm2GBzoiSHctKvRDX3jKhl+re6JQM4rei2gKcIkGEMHtIE+agZ50lLGtK1zGnm3 X-Received: by 2002:a17:906:2707:: with SMTP id z7mr41918400ejc.418.1609161436717; Mon, 28 Dec 2020 05:17:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609161436; cv=none; d=google.com; s=arc-20160816; b=S7FdRJe/FG7LItGaC0dFIZSlW0PK5j9L1jEsbfaziP79gv+/ZU0w3daIxCfSi87Ma0 GUUjxLMrQeC6GshATVXv11GuYTZDA/ml/uCqBJ9n9Y9mvQWvYWroakUQXTR1woc1r4lG oCFjlTrqe0keWwYgbewLkmXMp/gjyA+qJBUY9y/GoqgiyudqHcE+dy+hmi3CA5kvig/F f+EWw0yi/THSclBX96MIc/CzjZ5U7ESxs2narFPZekklFLTGYEiMpar31j7DorZkD4lo RBn7UK9aBj7jmLFBhPY8WWXsHJWEG65QV8f2E6tIcE5AfVPE8BxVMFgoYWoyPCLOoDlZ NuDg== 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=2cag0WpwBVOh5vXYzoXnGPmsclr/vU4Okf6oC9GKEqc=; b=UgcUk2L1H9DQNQ4hZdUD9F3IZI+SmyadfbeGwlyrRtf+3a9CK/T9oYvRTYAmjNpB/g JLPorKD7pZwAyUqcYIqF8kzJYx8COJvva6YTwsTVMBKf6J/HkG7o/JFFaElXYijg76nn /9AOFH726heKF3rpoDIJNNWceCZQp+rcCPIzDeh/zozVmCjqAYp+Y3VMHd5uxUcyo1Jv m7Y456/TlP9Ilh4TptKRgCdyyyRZ+lW3rwP4hEQYvUoYzLr6zIJxUHmLBGHg0h2doaVR rRp6z/ORF2pmGfy1lUYTJhyB7Ga6DG1sawN3lQUQ47J2iHB58L03pY1CHhN705DLPvxz Edeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mPVllSDn; 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 e5si19879338edc.19.2020.12.28.05.16.54; Mon, 28 Dec 2020 05:17:16 -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=mPVllSDn; 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 S1732587AbgL1NOy (ORCPT + 99 others); Mon, 28 Dec 2020 08:14:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:42956 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732561AbgL1NOr (ORCPT ); Mon, 28 Dec 2020 08:14:47 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 764E9207F7; Mon, 28 Dec 2020 13:14:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161247; bh=fwflY/ZS/L/o9GDq6JDWj6emRIcz4zqrZH3092nj+QQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mPVllSDnP2nMCwmtCQ2A7ZZI2MEmK7YfN8yuX4OAaTR0T53ZMblPydh9Vyn1gnwkZ Qy7bfl62odIP0FJEdLLE6dfgkGyZTlk5g8PT2/7jpuNxUeq/o5aIl97yRbGOC6/fxj fe+PaJUJIa75enhYs41Ctd73RIQ9kP/R52jll6Sk= 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.14 152/242] speakup: fix uninitialized flush_lock Date: Mon, 28 Dec 2020 13:49:17 +0100 Message-Id: <20201228124912.184533666@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@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 f069954800226..53316b0c0b13c 100644 --- a/drivers/staging/speakup/speakup_dectlk.c +++ b/drivers/staging/speakup/speakup_dectlk.c @@ -46,7 +46,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