Skip to content

Commit 951694f

Browse files
Haoxiang Ligregkh
authored andcommitted
media: omap3isp: drop the use count of v4l2 pipeline
commit 9da49bd upstream. In isp_video_open(), drop the use count of v4l2 pipeline if vb2_queue_init() fails. Fixes: 8fd390b ("media: Split v4l2_pipeline_pm_use into v4l2_pipeline_pm_{get, put}") Cc: stable@vger.kernel.org Signed-off-by: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent e85f1e2 commit 951694f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/media/platform/ti/omap3isp/ispvideo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,7 @@ static int isp_video_open(struct file *file)
13241324

13251325
ret = vb2_queue_init(&handle->queue);
13261326
if (ret < 0) {
1327+
v4l2_pipeline_pm_put(&video->video.entity);
13271328
omap3isp_put(video->isp);
13281329
goto done;
13291330
}

0 commit comments

Comments
 (0)