sun4i-csi: call _vb2_fop_release instead of v4l2_fh_release
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 7 Jul 2020 13:36:47 +0000 (15:36 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 05:45:55 +0000 (07:45 +0200)
commit503ebad4b5d7883ab8476d95f0e2aa77bc56f91e
tree6bd13d8f8682793fe41281fb13465bf4c4450204
parent71ecc5356d227072c7c31e44f6774d461fd4865f
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>
drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c