Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp514229pxb; Thu, 9 Sep 2021 06:13:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqfa59LizLnW2O0vWZPfDKX0UP9GI0ZLLz5PaGrR+7mj/R0Y1YfDDwrNVfFqBUetuAsfqk X-Received: by 2002:a17:906:2ac1:: with SMTP id m1mr3324232eje.518.1631193212224; Thu, 09 Sep 2021 06:13:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631193212; cv=none; d=google.com; s=arc-20160816; b=jkc5eKBYcyk/68nP8XC3PxRI33ak0VRinUkwPiY0WL5qHqdoc2/HgsC60tjCkVLG7L s0aJNRoEdm6otzgzWPCFdHxLr73wmAFEDc28Pr6qU5KiVKvoK0QcQPDOVhgLzguQYMcu 9LVPH+oEz9u6Iy0AuXIIuPMqEmiZyhBo5qCn6N4CVFq7PYk2oEjNnHZIOq6Ukgr4Y9id GRyv1ZRKr++SBYA0IkREu4UzzErxRS9ob34xvAlI8lTcSfl/seFB1vxrYwttvXH9OyCu tnktQ+LmJUN1Yq4KF42WCUov6A9ZesHd5QEWfSfY0Z1MUxU9clXhIsiqWLaygLq9MsaH 5vSg== 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=Gd0Tw7AWeEjiweTmQRdjDFHq/Wyg9hY9yJb28Yta6LU=; b=rx4J1pYFSdpL2HfB7/PogA8ZfVpdIbDfUoqca9U40LUZ03VG1BVnCVYZB1k3iXecTP gKnwVfcPB3gjEtAodrMXHM5SwVuy98Un7nZmzEQ6tOkBQizhfIDEvNwEi0SLJenLhEQA 8/GiiJ+TQckL1dMny8EqJ5AcTyCDVDCSxFHzM8cxc1FOGeQZP0UTXfTwGAi4RemcK/8H araiGg1qfEW7kP95QR7ntJTAR6YLruiVXERI+gfdbJXC1Uyt32kErPhJEeNGfrhiYeJD U5ESUSpgnPt4Drjr7w88JSPuV8RiZrACOjGf6O29qJL4lUSKTlGDR9f7s/TJBp9KjVa/ b9Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BwSxOHEc; 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 w18si1749159edu.157.2021.09.09.06.13.00; Thu, 09 Sep 2021 06:13:32 -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=BwSxOHEc; 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 S1357560AbhIINMi (ORCPT + 99 others); Thu, 9 Sep 2021 09:12:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:43764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354273AbhIINBp (ORCPT ); Thu, 9 Sep 2021 09:01:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 20C466328E; Thu, 9 Sep 2021 11:59:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631188774; bh=Navu+9orUptoC/TIOjd8OF+vPVfJr3AYSShtGdBkDLk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BwSxOHEcKoTO8kjWK3gU8cGbZADoH2K1kh+qCKOC4NvvVDIAv2JFZIflf/2y/PoOU 8nVHfF6gil8/nHa6M/GypEHSDrHjSotbvFra0flXZAobQOQBsIqgBVyx6KHrRhZF/2 QUU8tLrNoapVQEs6/EJhdH+vL6WCbDssKCeFUOlLBXf9eWN0GUdOxu3jzFU9atK8A5 CXCiH4CPM+kKEfECe3DyF/3iGEyTWUi50cIHXEzkVwxDYyvsWJRSnLIwkV4yq1L+Ms RQBE6tr8E13Rn6QhU5RwBJJrrd3IUWqgdh14Eko2fvrbaAIiOVAI5hhbQ+/RVAr5yo dQEuB4hVnzx6w== 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 4.14 27/59] staging: ks7010: Fix the initialization of the 'sleep_status' structure Date: Thu, 9 Sep 2021 07:58:28 -0400 Message-Id: <20210909115900.149795-27-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909115900.149795-1-sashal@kernel.org> References: <20210909115900.149795-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 8cfdff198334..84a5b6ebfd07 100644 --- a/drivers/staging/ks7010/ks7010_sdio.c +++ b/drivers/staging/ks7010/ks7010_sdio.c @@ -904,9 +904,9 @@ static int ks7010_sdio_probe(struct sdio_func *func, 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