]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:05:04 +0000 (12:05 +0200)
commit43e7b44eb6ffbdca7d8a9d6c695f515b43fb46e5
tree37632354d6f35a7ca333b970b4c98306ad512777
parent0dd6f32d47a994514b2cf09c288c5e47095dc08d
dmaengine: mv_xor: Fix missing check after DMA map and missing unmap

[ Upstream commit 60095aca6b471b7b7a79c80b7395f7e4e414b479 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/mv_xor.c