Commit 81c69fc2 authored by Pawel Osciak's avatar Pawel Osciak Committed by Mauro Carvalho Chehab

V4L/DVB: v4l: s5p-fimc: Fix return value on probe() failure

On failed create_workqueue() fimc_probe() was returning 0.
Signed-off-by: default avatarPawel Osciak <p.osciak@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 86d8b6ab
...@@ -1415,8 +1415,10 @@ static int fimc_probe(struct platform_device *pdev) ...@@ -1415,8 +1415,10 @@ static int fimc_probe(struct platform_device *pdev)
} }
fimc->work_queue = create_workqueue(dev_name(&fimc->pdev->dev)); fimc->work_queue = create_workqueue(dev_name(&fimc->pdev->dev));
if (!fimc->work_queue) if (!fimc->work_queue) {
ret = -ENOMEM;
goto err_irq; goto err_irq;
}
ret = fimc_register_m2m_device(fimc); ret = fimc_register_m2m_device(fimc);
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment