diff options
| author | Niravkumar L Rabara <[email protected]> | 2025-10-23 03:32:01 +0000 |
|---|---|---|
| committer | Miquel Raynal <[email protected]> | 2025-10-23 07:03:13 +0000 |
| commit | 5c56bf214af85ca042bf97f8584aab2151035840 (patch) | |
| tree | d93ac2ed98bac869f006131d01b088c60c6240b8 /tools/lib/traceevent/plugins/plugin_function.c | |
| parent | mtd: rawnand: realtek: Make rtl_ecc_engine_ops const (diff) | |
| download | kernel-5c56bf214af85ca042bf97f8584aab2151035840.tar.gz kernel-5c56bf214af85ca042bf97f8584aab2151035840.zip | |
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: [email protected]
Signed-off-by: Niravkumar L Rabara <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Diffstat (limited to 'tools/lib/traceevent/plugins/plugin_function.c')
0 files changed, 0 insertions, 0 deletions
