summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorNiravkumar L Rabara <niravkumarlaxmidas.rabara@altera.com>2025-10-23 11:32:01 +0800
committerMiquel Raynal <miquel.raynal@bootlin.com>2025-10-23 09:03:13 +0200
commit5c56bf214af85ca042bf97f8584aab2151035840 (patch)
treed93ac2ed98bac869f006131d01b088c60c6240b8 /net/unix/af_unix.c
parent9631350885929819d4e46c6521df35960b472ef3 (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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions