Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sun4i-csi: call _vb2_fop_release instead of v4l2_fh_release

This driver didn't call _vb2_fop_release in the sun4i_csi_release
function. Without that call the vb2 queue is not properly canceled and
buffers may not be freed.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
503ebad4 71ecc535

+2 -1
+2 -1
drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c
··· 242 242 243 243 mutex_lock(&csi->lock); 244 244 245 - v4l2_fh_release(file); 245 + _vb2_fop_release(file, NULL); 246 + 246 247 v4l2_pipeline_pm_put(&csi->vdev.entity); 247 248 pm_runtime_put(csi->dev); 248 249