media: omap3isp: drop the use count of v4l2 pipeline

In isp_video_open(), drop the use count of v4l2
pipeline if vb2_queue_init() fails.

Fixes: 8fd390b89c ("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>
This commit is contained in:
Haoxiang Li 2026-01-26 09:44:12 +08:00 committed by Mauro Carvalho Chehab
parent 942435a62d
commit 9da49bd9d4

View 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;
}