[media] v4l: xilinx: missing error code
[deliverable/linux.git] / drivers / media / platform / xilinx / xilinx-dma.c
index 98e50e446d57a2b835d93e65992a55ebc1918713..e779c93cb01581db606d799c6622226bad11f2a0 100644 (file)
@@ -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
This page took 0.024909 seconds and 5 git commands to generate.