提交 e31f8f00 编写于 作者: D Dan Carpenter 提交者: Mauro Carvalho Chehab

[media] v4l: xilinx: missing error code

We should set "ret" on this error path instead of returning success.

Fixes: df330515 ('[media] v4l: xilinx: Add Xilinx Video IP core')
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: NHyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 d32d9864
...@@ -699,8 +699,10 @@ int xvip_dma_init(struct xvip_composite_device *xdev, struct xvip_dma *dma, ...@@ -699,8 +699,10 @@ int xvip_dma_init(struct xvip_composite_device *xdev, struct xvip_dma *dma,
/* ... and the buffers queue... */ /* ... and the buffers queue... */
dma->alloc_ctx = vb2_dma_contig_init_ctx(dma->xdev->dev); dma->alloc_ctx = vb2_dma_contig_init_ctx(dma->xdev->dev);
if (IS_ERR(dma->alloc_ctx)) if (IS_ERR(dma->alloc_ctx)) {
ret = PTR_ERR(dma->alloc_ctx);
goto error; goto error;
}
/* Don't enable VB2_READ and VB2_WRITE, as using the read() and write() /* Don't enable VB2_READ and VB2_WRITE, as using the read() and write()
* V4L2 APIs would be inefficient. Testing on the command line with a * V4L2 APIs would be inefficient. Testing on the command line with a
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册