Skip to content

Commit 1832fba

Browse files
JiangJiaspinchartl
authored andcommitted
drm: xlnx: zynqmp_dpsub: Add missing check for dma_set_mask
Add check for dma_set_mask() and return the error if it fails. Fixes: d76271d ("drm: xlnx: DRM/KMS driver for Xilinx ZynqMP DisplayPort Subsystem") Signed-off-by: Jiasheng Jiang <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Reviewed-by: Tomi Valkeinen <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]>
1 parent ea45025 commit 1832fba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/gpu/drm/xlnx/zynqmp_dpsub.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ static int zynqmp_dpsub_probe(struct platform_device *pdev)
227227
dpsub->dev = &pdev->dev;
228228
platform_set_drvdata(pdev, dpsub);
229229

230-
dma_set_mask(dpsub->dev, DMA_BIT_MASK(ZYNQMP_DISP_MAX_DMA_BIT));
230+
ret = dma_set_mask(dpsub->dev, DMA_BIT_MASK(ZYNQMP_DISP_MAX_DMA_BIT));
231+
if (ret)
232+
return ret;
231233

232234
/* Try the reserved memory. Proceed if there's none. */
233235
of_reserved_mem_device_init(&pdev->dev);

0 commit comments

Comments
 (0)