]> 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:18:40 +0000 (11:18 +0100)
commit99dccb81cba857d8db45cffcb0facae19a2d76eb
tree294439b05bc95991fa6650dae5f4a588433c17d6
parentcb2c9c4bb1322cc3c9984ad17db8cdd2663879ca
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