]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: omap3isp: drop the use count of v4l2 pipeline
authorHaoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Mon, 26 Jan 2026 01:44:12 +0000 (09:44 +0800)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 11 Mar 2026 00:05:38 +0000 (01:05 +0100)
In isp_video_open(), drop the use count of v4l2
pipeline if vb2_queue_init() fails.

Fixes: 8fd390b89cc8 ("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>
drivers/media/platform/ti/omap3isp/ispvideo.c

index 64e76e3576a8680344a233c19f80e89bf8738ff0..b946c8087c77801b76ed42ee4b31214afd42cc59 100644 (file)
@@ -1403,6 +1403,7 @@ static int isp_video_open(struct file *file)
 
        ret = vb2_queue_init(&handle->queue);
        if (ret < 0) {
+               v4l2_pipeline_pm_put(&video->video.entity);
                omap3isp_put(video->isp);
                goto done;
        }