mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 18:10:50 +07:00
[media] v4l: xilinx: missing error code
We should set "ret" on this error path instead of returning success.
Fixes: df3305156f
('[media] v4l: xilinx: Add Xilinx Video IP core')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
d32d98642d
commit
e31f8f00bf
@ -699,8 +699,10 @@ int xvip_dma_init(struct xvip_composite_device *xdev, struct xvip_dma *dma,
|
||||
|
||||
/* ... and the buffers queue... */
|
||||
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;
|
||||
}
|
||||
|
||||
/* 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
|
||||
|
Loading…
Reference in New Issue
Block a user