Re: [PATCH] mtd: rawnand: cadence: fix DMA device NULL pointer dereference
From: Miquel Raynal
Date: Thu Oct 23 2025 - 03:04:26 EST
On Thu, 23 Oct 2025 11:32:01 +0800, niravkumarlaxmidas.rabara@xxxxxxxxxx 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