Skip to content

Commit 35072f3

Browse files
Robin Gonggregkh
authored andcommitted
dmaengine: fsl-qdma: check dma_set_mask return value
[ Upstream commit f0c0799 ] For fix below warning reported by static code analysis tool like Coverity from Synopsys: Signed-off-by: Robin Gong <yibin.gong@nxp.com> Addresses-Coverity-ID: 12285639 ("Unchecked return value") Link: https://lore.kernel.org/r/1619427549-20498-1-git-send-email-yibin.gong@nxp.com Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 249e0ab commit 35072f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/dma/fsl-qdma.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,11 @@ static int fsl_qdma_probe(struct platform_device *pdev)
11841184
fsl_qdma->dma_dev.device_synchronize = fsl_qdma_synchronize;
11851185
fsl_qdma->dma_dev.device_terminate_all = fsl_qdma_terminate_all;
11861186

1187-
dma_set_mask(&pdev->dev, DMA_BIT_MASK(40));
1187+
ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(40));
1188+
if (ret) {
1189+
dev_err(&pdev->dev, "dma_set_mask failure.\n");
1190+
return ret;
1191+
}
11881192

11891193
platform_set_drvdata(pdev, fsl_qdma);
11901194

0 commit comments

Comments
 (0)