[PATCH] mtd: rawnand: cadence: fix DMA device NULL pointer dereference

Miquel Raynal miquel.raynal at bootlin.com
Thu Oct 23 00:04:21 PDT 2025


On Thu, 23 Oct 2025 11:32:01 +0800, niravkumarlaxmidas.rabara at altera.com wrote:
> The DMA device pointer `dma_dev` was being dereferenced before ensuring
> that `cdns_ctrl->dmac` is properly initialized.
> 
> Move the assignment of `dma_dev` after successfully acquiring the DMA
> channel to ensure the pointer is valid before use.
> 
> 
> [...]

Applied to mtd/fixes, thanks!

[1/1] mtd: rawnand: cadence: fix DMA device NULL pointer dereference
      commit: 5c56bf214af85ca042bf97f8584aab2151035840

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl




More information about the linux-mtd mailing list