dmaengine: xilinx_dma: Report error in case of dma_set_mask_and_coherent API failure
authorSwati Agarwal <swati.agarwal@xilinx.com>
Wed, 17 Aug 2022 06:11:25 +0000 (11:41 +0530)
committerVinod Koul <vkoul@kernel.org>
Sun, 4 Sep 2022 17:24:07 +0000 (22:54 +0530)
commit8f2b6bc79c32f0fa60df000ae387a790ec80eae9
tree5e94e99c87a9b9e6f3c9e2cd7e2aa963799d38d5
parent462bce790e6a7e68620a4ce260cc38f7ed0255d5
dmaengine: xilinx_dma: Report error in case of dma_set_mask_and_coherent API failure

The driver does not handle the failure case while calling
dma_set_mask_and_coherent API.

In case of failure, capture the return value of API and then report an
error.

Addresses-coverity: Unchecked return value (CHECKED_RETURN)

Signed-off-by: Swati Agarwal <swati.agarwal@xilinx.com>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Link: https://lore.kernel.org/r/20220817061125.4720-4-swati.agarwal@xilinx.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xilinx_dma.c