]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dmaengine: mv_xor: Fix missing check after DMA map and missing unmap
authorThomas Fourier <fourier.thomas@gmail.com>
Tue, 1 Jul 2025 12:37:52 +0000 (14:37 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 23 Jul 2025 12:25:32 +0000 (17:55 +0530)
commit60095aca6b471b7b7a79c80b7395f7e4e414b479
tree4a8ce5ca155c44520cbc58e1a3b19ad943aa131a
parentb330d77c5da2cfece98a89cbb51b8ef948691e6f
dmaengine: mv_xor: Fix missing check after DMA map and missing unmap

The DMA map functions can fail and should be tested for errors.

In case of error, unmap the already mapped regions.

Fixes: 22843545b200 ("dma: mv_xor: Add support for DMA_INTERRUPT")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Link: https://lore.kernel.org/r/20250701123753.46935-2-fourier.thomas@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/mv_xor.c