Skip to content

Commit

Permalink
V4L/DVB: v4l: s5p-fimc: Fix return value on probe() failure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pawel Osciak authored and Mauro Carvalho Chehab committed Sep 28, 2010
1 parent 86d8b6a commit 81c69fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/video/s5p-fimc/fimc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 81c69fc

Please sign in to comment.