diff options
author | Pawel Osciak <p.osciak@samsung.com> | 2010-09-06 08:53:43 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-09-28 03:37:48 +0200 |
commit | 81c69fc200bfa2f3a8b2fed614d1c6670c4a7e14 (patch) | |
tree | 0d1c3ac949b6c5c74d946f26c377382066fed17e /drivers | |
parent | V4L/DVB: uvcvideo: Restrict frame rates for Chicony CNF7129 webcam (diff) | |
download | linux-81c69fc200bfa2f3a8b2fed614d1c6670c4a7e14.tar.xz linux-81c69fc200bfa2f3a8b2fed614d1c6670c4a7e14.zip |
V4L/DVB: v4l: s5p-fimc: Fix return value on probe() failure
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/s5p-fimc/fimc-core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/s5p-fimc/fimc-core.c b/drivers/media/video/s5p-fimc/fimc-core.c index 1beb2263d18c..8cd1ef073926 100644 --- a/drivers/media/video/s5p-fimc/fimc-core.c +++ b/drivers/media/video/s5p-fimc/fimc-core.c @@ -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) |