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 82AA842EEBD for ; Fri, 15 May 2026 11:46:22 +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=1778845582; cv=none; b=R3bbGT0tNIGQInP2MrIJ9Yz/AvxtPETEW55fcuy+eVb9OaRfKLUKVE/9AuLXt3NRJJZrmTvDsYHXLz8CQouK53KnRLprWgbkA23jzaA0QfHHMnDRam7tjocNhPO3F90+UKFf6jwJNz+hSLy8PHj87DIkrwU6pfj15rx6zJH73K4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778845582; c=relaxed/simple; bh=jq0lVFwHg/uA0iAl2huniaqeTN2pyvpjOS4OKOGP22Y=; h=Subject:To:From:Date:Message-ID:MIME-Version:Content-Type; b=rV8paObtwazJ78BdkK1TKD2DqHFIehzKPIGFwDOufDV1XRcVOm3L5xpjNgMtDBr2FBu2DMk0uL1qMBLU+3JYIoo8WIJ4JYeCJXipwI3wgM3wH6x5Xsx5P1EB2KK5HFKGeOu9xBTiS2w2Pdir+g8KithvuRho0zMVX3M5eS00R84= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GBQYLz1k; 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="GBQYLz1k" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CEEFBC2BCB8; Fri, 15 May 2026 11:46:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778845582; bh=jq0lVFwHg/uA0iAl2huniaqeTN2pyvpjOS4OKOGP22Y=; h=Subject:To:From:Date:From; b=GBQYLz1kinJRoE1cI/Dq8uwD8e02rOwtMx1ebedzP79hjdKjlQ+V4SXbJebGtqGvU IN9/KO618SCKS3vX+WLfKvzA/fFsrodmFhmLqt17p6498Zbm5WXGaC9e2heIpijTHy 55+cL/fGYD1n+i3ObBiOAHXf/slYE1Ncg1yi62UQ= Subject: patch "iio: adc: nxp-sar-adc: zero-initialize dma_slave_config" added to char-misc-linus To: shuvampandey1@gmail.com,Stable@vger.kernel.org,dlechner@baylibre.com,jic23@kernel.org From: Date: Fri, 15 May 2026 13:45:57 +0200 Message-ID: <2026051557-hatless-unlivable-d608@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit This is a note to let you know that I've just added the patch titled iio: adc: nxp-sar-adc: zero-initialize dma_slave_config to my char-misc git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git in the char-misc-linus branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will hopefully also be merged in Linus's tree for the next -rc kernel release. If you have any questions about this process, please let me know. >From 8ce176501f836634f9c0419c0820140f968e9dc5 Mon Sep 17 00:00:00 2001 From: Shuvam Pandey Date: Mon, 6 Apr 2026 15:38:24 +0545 Subject: iio: adc: nxp-sar-adc: zero-initialize dma_slave_config nxp_sar_adc_start_cyclic_dma() only fills the RX-side members of dma_slave_config before passing it to dmaengine_slave_config(). Zero-initialize the structure so unused members do not contain stack garbage. Some DMA engines consult optional dma_slave_config fields, so leaving them uninitialized can cause DMA setup failures. Fixes: 4434072a893e ("iio: adc: Add the NXP SAR ADC support for the s32g2/3 platforms") Signed-off-by: Shuvam Pandey Reviewed-by: David Lechner Cc: Signed-off-by: Jonathan Cameron --- drivers/iio/adc/nxp-sar-adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/nxp-sar-adc.c b/drivers/iio/adc/nxp-sar-adc.c index 1711cae7d872..8f4ed3db94f0 100644 --- a/drivers/iio/adc/nxp-sar-adc.c +++ b/drivers/iio/adc/nxp-sar-adc.c @@ -676,7 +676,7 @@ static void nxp_sar_adc_dma_cb(void *data) static int nxp_sar_adc_start_cyclic_dma(struct iio_dev *indio_dev) { struct nxp_sar_adc *info = iio_priv(indio_dev); - struct dma_slave_config config; + struct dma_slave_config config = { }; struct dma_async_tx_descriptor *desc; int ret; -- 2.54.0