Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2568039lkm; Mon, 20 Sep 2021 18:56:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8b+egTJhL+CNXFY3/EyqQMjolfkLLvFHSd32nqx6Nsh3YhfCGgAKzMiM25+YPrBNrShc+ X-Received: by 2002:a02:711e:: with SMTP id n30mr21891604jac.3.1632188964721; Mon, 20 Sep 2021 18:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632188964; cv=none; d=google.com; s=arc-20160816; b=MKNRpm4p26ag8k7pShT4cHpNZLC0KJd3QCfY9V3fch4lZtguTxFyNC6qncZJravfSF t00A6gmKRpfaPYr5BQN8kfFaHxsemLcPMct1B3L75gECHTebTB5TWTOL4X9RhwuzFjFz mp/7BTH5unDqSgbOLgwpRPqnh91qAbRTpdE9HkoSjffYxnUH2D+FHk3W+UUHS4PiGODQ hVC6oOGpE5UoL0ddpkY4UcplLG0z1M3iGhIULf53LhUEAb2kf1s3A3NV/pj1aj4L8B1D M5qlYVl6DD+sB80z1MyeFZpAit7Y+2FJkf7sruMASlbMaaeBFcIdvMP5fJMuzYk3IeY0 Nw5w== 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=77Iz8hTLeferto7uSCG54zPp6HMCshNsCGk0cqtauxA=; b=IkTNMykkzDc3GRY6pr3rmwtyazohRSO+ewIrbrZBWCj8quWAlQmrzCpHEtQfCwsdyu ZBss2LuCgU5EQvW3WoSol4DzGShbDUVF+typ3ulKliPWVgnrU3C9tHAY0nM6DuJHN3EK sImi4yDwdRPN6MJ3PBgoZ7zr6vWKfXLoJIMNxdJJa9IpjuSVI0fNqHLwKPDRcMUkjVyu ommB465GoJZcyL5PtMqisaQrTMJRXMEWldiAGzgshyUJ1poAaE3v/IkLqRltzkcANaK5 S4dkx7UWxKrl6qPnTK5fw9U8fYM5iQHsWezuYnig7lMOrrBaQydQYMb5OkwtGy7Si46h oNMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UJfHdjbB; 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 m35si2329963jaf.30.2021.09.20.18.49.13; Mon, 20 Sep 2021 18:49:24 -0700 (PDT) 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=UJfHdjbB; 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 S1355588AbhITRz2 (ORCPT + 99 others); Mon, 20 Sep 2021 13:55:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:53086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354250AbhITRtY (ORCPT ); Mon, 20 Sep 2021 13:49:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 23EC161159; Mon, 20 Sep 2021 17:11:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632157894; bh=r5gz44xUGjKQNP9W0Z+Pc8rBVdPIxDjXE7XorbWSThM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UJfHdjbBEoEIlFD+2RYfPkJfprl6u/w/lDUOGB3C9afMCH2/u8b8wuL2fU/EnTDsK m8A/GODr923bzSdkXn9BgrKjNbUbbBSSwklu12/UL5Eft6qAxrVEee42+KEZH4bARc iOICOZbcMR5qc4fLEmgOLMnKSmAIzdL5WkAvT//Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Sasha Levin Subject: [PATCH 4.19 200/293] staging: ks7010: Fix the initialization of the sleep_status structure Date: Mon, 20 Sep 2021 18:42:42 +0200 Message-Id: <20210920163940.114045529@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163933.258815435@linuxfoundation.org> References: <20210920163933.258815435@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: Christophe JAILLET [ Upstream commit 56315e55119c0ea57e142b6efb7c31208628ad86 ] 'sleep_status' has 3 atomic_t members. Initialize the 3 of them instead of initializing only 2 of them and setting 0 twice to the same variable. Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/d2e52a33a9beab41879551d0ae2fdfc99970adab.1626856991.git.christophe.jaillet@wanadoo.fr Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/staging/ks7010/ks7010_sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c index 74551eb717fc..79d0513bd282 100644 --- a/drivers/staging/ks7010/ks7010_sdio.c +++ b/drivers/staging/ks7010/ks7010_sdio.c @@ -938,9 +938,9 @@ static void ks7010_private_init(struct ks_wlan_private *priv, memset(&priv->wstats, 0, sizeof(priv->wstats)); /* sleep mode */ + atomic_set(&priv->sleepstatus.status, 0); atomic_set(&priv->sleepstatus.doze_request, 0); atomic_set(&priv->sleepstatus.wakeup_request, 0); - atomic_set(&priv->sleepstatus.wakeup_request, 0); trx_device_init(priv); hostif_init(priv); -- 2.30.2