]> git.ipfire.org Git - thirdparty/linux.git/commit
dmaengine: dw-edma-pcie: Reject devices without driver data
authorKoichiro Den <den@valinux.co.jp>
Thu, 21 May 2026 14:21:51 +0000 (23:21 +0900)
committerVinod Koul <vkoul@kernel.org>
Mon, 8 Jun 2026 11:32:21 +0000 (17:02 +0530)
commit11d7cfe0c119691b2dafbb699bbca90258c678aa
tree9c9c53f9c85bd7cfaaead80f543ac5ad68b89952
parentc0a207898fca8cbb4fad0da1e950d477b6afbf64
dmaengine: dw-edma-pcie: Reject devices without driver data

dw_edma_pcie_probe() treats the PCI device ID driver_data as the
template for the controller layout and copies it unconditionally. A
device bound dynamically via sysfs can match the driver without that
data, which leads to a NULL pointer dereference.

Reject such matches before enabling the device.

Fixes: 41aaff2a2ac0 ("dmaengine: Add Synopsys eDMA IP PCIe glue-logic")
Cc: stable@vger.kernel.org
Signed-off-by: Koichiro Den <den@valinux.co.jp>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260521142153.2957432-3-den@valinux.co.jp
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dw-edma/dw-edma-pcie.c