]> 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, 23 Jan 2026 10:21:21 +0000 (11:21 +0100)
commitf93c7033689218698b5ebe5c763f2da36dec8eef
tree7556fe786a74d8d49d20e06b9a458eaaefa50e9f
parentbe655c3736b3546f39bc8116ffbf2a3b6cac96c4
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