Skip to content

Commit

Permalink
[media] s5p-fimc: media_entity_pipeline_start() may fail
Browse files Browse the repository at this point in the history
Take into account media_entity_pipeline_start() may fail.

[s.nawrocki: rebased onto latest tree]
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Sakari Ailus authored and Mauro Carvalho Chehab committed Jun 25, 2012
1 parent 8183e7a commit a60a295
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/video/s5p-fimc/fimc-capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,8 +1045,10 @@ static int fimc_cap_streamon(struct file *file, void *priv,
if (fimc_capture_active(fimc))
return -EBUSY;

media_entity_pipeline_start(&p->subdevs[IDX_SENSOR]->entity,
ret = media_entity_pipeline_start(&p->subdevs[IDX_SENSOR]->entity,
p->m_pipeline);
if (ret < 0)
return ret;

if (fimc->vid_cap.user_subdev_api) {
ret = fimc_pipeline_validate(fimc);
Expand Down

0 comments on commit a60a295

Please sign in to comment.