]> git.ipfire.org Git - thirdparty/linux.git/commit
dmaengine: nbpfaxi: Add missing check after DMA map
authorThomas Fourier <fourier.thomas@gmail.com>
Mon, 7 Jul 2025 07:57:16 +0000 (09:57 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 23 Jul 2025 12:25:32 +0000 (17:55 +0530)
commitc6ee78fc8f3e653bec427cfd06fec7877ee782bd
treef7e8117a2b639d87d244b3008495536d88e337de
parent60095aca6b471b7b7a79c80b7395f7e4e414b479
dmaengine: nbpfaxi: Add missing check after DMA map

The DMA map functions can fail and should be tested for errors.
If the mapping fails, unmap and return an error.

Fixes: b45b262cefd5 ("dmaengine: add a driver for AMBA AXI NBPF DMAC IP cores")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Link: https://lore.kernel.org/r/20250707075752.28674-2-fourier.thomas@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/nbpfaxi.c