diff options
| author | 2025-10-23 11:32:01 +0800 | |
|---|---|---|
| committer | 2025-10-23 09:03:13 +0200 | |
| commit | 5c56bf214af85ca042bf97f8584aab2151035840 (patch) | |
| tree | d93ac2ed98bac869f006131d01b088c60c6240b8 /arch/openrisc/include/uapi/ssh:/git@git.zx2c4.com | |
| parent | mtd: rawnand: realtek: Make rtl_ecc_engine_ops const (diff) | |
mtd: rawnand: cadence: fix DMA device NULL pointer dereference
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.
Fixes: d76d22b5096c ("mtd: rawnand: cadence: use dma_map_resource for sdma address")
Cc: stable@vger.kernel.org
Signed-off-by: Niravkumar L Rabara <niravkumarlaxmidas.rabara@altera.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'arch/openrisc/include/uapi/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
