From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D28631FBCB5; Tue, 26 Aug 2025 13:12:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756213943; cv=none; b=gprm3x65eg5+KgMZ5J7AoC4ejTN8Uu9Yetbz7xAip3kWAapgfi5U0KJHt97Gcyo/gNInLIl214A/o+HFN9ShAAPN6Jf4NDlGQM/+3OD1KvNdU1qxH67MttzwcZ5Z4BFNlSxMR0aIrK9xFWQnHfvWCSbFnm7QHDCmn+GxlOGUrz8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756213943; c=relaxed/simple; bh=cSRL/PURCwaYTPk40boywtp8J9n3BDu1bTmo+v3mWBw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jaYVX85oEg1jABUxjHTTPIW3xq5HRDwRBxjaeELzSd/asfVzaprrqGCsVHssFrS5xzY+qHEg8n0+OXQk6IfwdISsc1fatMiXSup78SJ5dfktbPPFJWYETQY/eDddBXMvv5LtdjZA/sv1SZq/EPy5cpNMkWnGyPDDiqG42ToPNGk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zShlb5cz; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="zShlb5cz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5903CC4CEF1; Tue, 26 Aug 2025 13:12:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1756213943; bh=cSRL/PURCwaYTPk40boywtp8J9n3BDu1bTmo+v3mWBw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zShlb5cz3m0O1ZkcXL7qnMeS0dOJaPNOdjHipOP5mC6U2P1DM09aA+FfzlVYgCLvp mEbmp514/NnUd/CFi2XecTO7wwdfgLVx4/Tu20/ccQNae9pGA/IkkJAKt82mQMVRUv 8tlKTg5icOz/vB1ub5yqf+SUFIu5uGFpIn/bE2Fg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Matti Vaittinen , Andy Shevchenko , Stable@vger.kernel.org, Jonathan Cameron , Sasha Levin Subject: [PATCH 6.6 538/587] iio: light: as73211: Ensure buffer holes are zeroed Date: Tue, 26 Aug 2025 13:11:27 +0200 Message-ID: <20250826111006.697768428@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250826110952.942403671@linuxfoundation.org> References: <20250826110952.942403671@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jonathan Cameron [ Upstream commit 433b99e922943efdfd62b9a8e3ad1604838181f2 ] Given that the buffer is copied to a kfifo that ultimately user space can read, ensure we zero it. Fixes: 403e5586b52e ("iio: light: as73211: New driver") Reviewed-by: Matti Vaittinen Reviewed-by: Andy Shevchenko Link: https://patch.msgid.link/20250802164436.515988-2-jic23@kernel.org Cc: Signed-off-by: Jonathan Cameron [ Adjust context ] Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/iio/light/as73211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/iio/light/as73211.c +++ b/drivers/iio/light/as73211.c @@ -573,7 +573,7 @@ static irqreturn_t as73211_trigger_handl struct { __le16 chan[4]; s64 ts __aligned(8); - } scan; + } scan = { }; int data_result, ret; mutex_lock(&data->mutex);