Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1700535pxb; Thu, 16 Sep 2021 13:20:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZaqX9HOdlt1IAJjy9XDP8xbM8e67UvdCJnu2+7TQbT/w5eQuSn7rRZMIlV4GhYUGKppFo X-Received: by 2002:a17:906:1451:: with SMTP id q17mr8021551ejc.214.1631823636240; Thu, 16 Sep 2021 13:20:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631823636; cv=none; d=google.com; s=arc-20160816; b=QzHaw9XtN2ctLtrM/MOLkou3KpIjXLWd74Jmwbac+FNIjd6owO7DQeusDWb1ZZ2RIn tX5oQGDUPp7Jfs0SJX8Zc7EcnnTszlCy8ipmKrK3IzJk9sU5ID7G2adYJ5KGQHqokLhw UOkIY7NtnMpK5XYgPruGCkHOWQr2+CCnTr3Ax9QOz2Ev+QWle83UHnxhpApo7Jl0UpJM +EoCtlHlpp0uxRTmsTI7KAvBv0hhSN6isxMU3wtqYqsa/xlyAdJ8t5LvFyq6NK8S74uf fN3RHAts7KyLBiosDMiRjHgmtJMRgBOogYAWxRB4lqNrBQs0v4GX/FqNJ14PRjn4zxbQ YT0g== 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=Qn6N9x2qF4+Ill2NcwjOT0LYqciVz/spPR1QCgyOiZw=; b=JE1cRYjqA0CKIN1BmyicM7xPYSyq6B8HtsGIm+rTiub+g9rGoT7eW1lzuingLLc01D YnHw6OfTDHV17BJEpdfXDo4nt1SXrTtflywG4G4AGr6kuDhNu3Hm8YEoB37pNMy09Puo CpodLU1a7B8mDZQ367oJ9zOozHaSpRqyiTsHW9IEE4fTydJOMEqrg8BCHioVDhrjFWEF 018+9CjbRTpphdfrtz2cDxgh90KcICCCZdbS2rW8fS7x3J+0Lnf/uFaxa5nFSxXMjMlO Tjaid6tehGoOSX51ux7S3OEcny43MSCo4bzbfd1UYvA0C84NbfcOYkFnSdv2SMwhU6KS aN3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iafAttmW; 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 jx13si4447155ejc.614.2021.09.16.13.20.12; Thu, 16 Sep 2021 13:20:36 -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=iafAttmW; 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 S241225AbhIPQWq (ORCPT + 99 others); Thu, 16 Sep 2021 12:22:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:55042 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240806AbhIPQOa (ORCPT ); Thu, 16 Sep 2021 12:14:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A5A0E613A5; Thu, 16 Sep 2021 16:10:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808634; bh=bkivChkdpLFO1TZYQV/g8jfevgN1DLu5GcAyvQybj68=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iafAttmWo7G+wuwI11/kTMCBvjIrbL3wnYa+uCfFx0Wtsoh6q9GF3KD1wTBtcGuCj NFa7ptRsYeUFMTonQu4b69MB++2aoZD0EggdX9tB7NtZ86AAb2KtBWiN9pCoYVdob8 47E9yC+gHxAANoFVD5eG05b0yR1gY02ZOiTIR7Zo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Sasha Levin Subject: [PATCH 5.10 165/306] staging: ks7010: Fix the initialization of the sleep_status structure Date: Thu, 16 Sep 2021 17:58:30 +0200 Message-Id: <20210916155759.708001132@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@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 78dc8beeae98..8c740c771f50 100644 --- a/drivers/staging/ks7010/ks7010_sdio.c +++ b/drivers/staging/ks7010/ks7010_sdio.c @@ -939,9 +939,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