Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp447360pxb; Thu, 9 Sep 2021 04:49:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJL2efwizA8YLi6CRo385bF4wa2DXirPtw9VMMrAmpPTYbCta4ObqtC/cUeZZi8dcBGRJV X-Received: by 2002:a5d:974f:: with SMTP id c15mr2230464ioo.190.1631188146323; Thu, 09 Sep 2021 04:49:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631188146; cv=none; d=google.com; s=arc-20160816; b=HPllV31mzkHDvOpo7AnoW3GspOHgx/VBD4uqDG8OGWGTc8kY23ak6oHk9inwM8kzcE jUL8iHKlQdNaJzKa3GKHL0xQFUA8gNoDasUP5Mw9BXlj3Ce2kPaA/b6F5V1Px18EvtA+ qZPF9Yz8RBEe8nt33W6fbePYtyftcN8B8JzxNBrNc64NrEsj1o72pYjIEo4/Im/W2bpF 3WBbSz51w0M1X5WYbGtNPPdMTr0ax69eBrpMIGHDxnEiBVre0tAAfKqIYsZEqwDuVA8H sxQj13sI1GsNcF8aOHwKKf0smhTpyTo7H/o/REcwgT5QSUSCcHKpST6lCvv+Z3CeWNoT UwTg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9iahM58pYtj6NCFpt6UIMq3k1eTnaPYvBV0hj4EWFFk=; b=a58brhuaUIldloOCn5VtyUCn+xkCy7FmIGisdNpIDzRLzBarT1PyKp0VZqGk+twU0v WThOKfeSlT4qvD10jELsYOdFXnN93ceXw9zrYinuD543bHrqeETQsTtxjW9cpU83SWw7 rnndjSUeKlL8AIV/Y6tIxfzRXHjZvB5W0w67ABRg0xP8FYcOzyKdXaFXGQmvr4iMCOUz fyf0DZ5dXV2UQZgmqiIEDjxCoNqW4rzH14GnQu+zjeHO3RsL7uRhvAFwJxVCSk+CmQLH YOd9yrthyATi7Bwore6GFY3FioDymn37QiYpx5WIJCqMLXc0KMRVaReCoQ66p/blI5WN FTag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KNHi8zJ6; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m82si1290136ioa.74.2021.09.09.04.48.54; Thu, 09 Sep 2021 04:49:06 -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=@kernel.org header.s=k20201202 header.b=KNHi8zJ6; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237179AbhIILsK (ORCPT + 99 others); Thu, 9 Sep 2021 07:48:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:47268 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240435AbhIILpw (ORCPT ); Thu, 9 Sep 2021 07:45:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9B4B561248; Thu, 9 Sep 2021 11:42:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631187772; bh=vZMjlN8+KlE6QllsSovulefHp3o4DnHg4Vgqw+JfgcI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KNHi8zJ6w80gJYAazskI23lvsSR18KeqjWtGRvOh7JAaHX81jM8wjHHJ9kOf3RnGF 1PiyJtaKxLRN2zOh25kEM4tp0Ro6RWTtLMYpd3TUFWFS2AKMFG6/VmX+JkR6gdly1Z +8o3SYepuhIfOsa10eweMKPPmXC9pTjvGbiL+N4kUu0qFRvx5l7VNc4DCbPaRoeFsM xe/utRWdsGz6JIZoKFQdAdKbNXNGskd40MPMHvhObatjV9vkCZqzOJyDHhuRCTcxS3 pc24WnL+T1rzBgv2VohZJlruyvbCUIU5gsdd9GiyGc/VTSQ4/f/9DpwHeEmtAueJUM SMZU5+bXvJguw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Christophe JAILLET , Greg Kroah-Hartman , Sasha Levin , linux-staging@lists.linux.dev Subject: [PATCH AUTOSEL 5.14 083/252] staging: ks7010: Fix the initialization of the 'sleep_status' structure Date: Thu, 9 Sep 2021 07:38:17 -0400 Message-Id: <20210909114106.141462-83-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909114106.141462-1-sashal@kernel.org> References: <20210909114106.141462-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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 cbc0032c1604..98d759e7cc95 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