[media] s5p-fimc: media_entity_pipeline_start() may fail
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>
This commit is contained in:
parent
8183e7a7e2
commit
a60a295986
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user