]> git.karo-electronics.de Git - linux-beck.git/commitdiff
V4L/DVB: v4l: s5p-fimc: Fix return value on probe() failure
authorPawel Osciak <p.osciak@samsung.com>
Mon, 6 Sep 2010 06:53:43 +0000 (03:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 28 Sep 2010 01:37:48 +0000 (22:37 -0300)
On failed create_workqueue() fimc_probe() was returning 0.

Signed-off-by: Pawel Osciak <p.osciak@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-fimc/fimc-core.c

index 1beb2263d18ce4df1b97ac6b044bbd4ec57085ca..8cd1ef07392656bed13a97127f04448cb195ec76 100644 (file)
@@ -1415,8 +1415,10 @@ static int fimc_probe(struct platform_device *pdev)
        }
 
        fimc->work_queue = create_workqueue(dev_name(&fimc->pdev->dev));
-       if (!fimc->work_queue)
+       if (!fimc->work_queue) {
+               ret = -ENOMEM;
                goto err_irq;
+       }
 
        ret = fimc_register_m2m_device(fimc);
        if (ret)