Stops the media entity pipeline which was started earlier if fimc_pipeline_validate fails. Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx> --- drivers/media/video/s5p-fimc/fimc-capture.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/s5p-fimc/fimc-capture.c b/drivers/media/video/s5p-fimc/fimc-capture.c index 587d087..d9efa64 100644 --- a/drivers/media/video/s5p-fimc/fimc-capture.c +++ b/drivers/media/video/s5p-fimc/fimc-capture.c @@ -1057,8 +1057,10 @@ static int fimc_cap_streamon(struct file *file, void *priv, if (fimc->vid_cap.user_subdev_api) { ret = fimc_pipeline_validate(fimc); - if (ret) + if (ret) { + media_entity_pipeline_stop(&p->subdevs[IDX_SENSOR]->entity); return ret; + } } return vb2_streamon(&fimc->vid_cap.vbq, type); } -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html