]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dmaengine: xilinx_dma: Fix uninitialized addr_width when "xlnx,addrwidth" property...
authorSuraj Gupta <suraj.gupta2@amd.com>
Tue, 21 Oct 2025 18:30:06 +0000 (00:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Jan 2026 09:27:25 +0000 (10:27 +0100)
commit0fd2001907fea63da79819bfdbf033d71fe69922
tree5216008c5692b7188acea1645dfce377b7da1e3e
parent59cb421b0902fbef2b9512ae8ba198a20f26b41f
dmaengine: xilinx_dma: Fix uninitialized addr_width when "xlnx,addrwidth" property is missing

[ Upstream commit c0732fe78728718c853ef8e7af5bbb05262acbd1 ]

When device tree lacks optional "xlnx,addrwidth" property, the addr_width
variable remained uninitialized with garbage values, causing incorrect
DMA mask configuration and subsequent probe failure. The fix ensures a
fallback to the default 32-bit address width when this property is missing.

Signed-off-by: Suraj Gupta <suraj.gupta2@amd.com>
Fixes: b72db4005fe4 ("dmaengine: vdma: Add 64 bit addressing support to the driver")
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Reviewed-by: Folker Schwesinger <dev@folker-schwesinger.de>
Link: https://patch.msgid.link/20251021183006.3434495-1-suraj.gupta2@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/xilinx/xilinx_dma.c