linux_dsm_epyc7002/drivers/media/platform/sti/bdisp
Johan Hovold 11609a7e21 media: bdisp: fix memleak on release
If a process is interrupted while accessing the video device and the
device lock is contended, release() could return early and fail to free
related resources.

Note that the return value of the v4l2 release file operation is
ignored.

Fixes: 28ffeebbb7 ("[media] bdisp: 2D blitter driver using v4l2 mem2mem framework")
Cc: stable <stable@vger.kernel.org>     # 4.2
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2019-11-05 08:50:02 -03:00
..
bdisp-debug.c media: platform: sti: remove bdisp_dbg_declare() and hva_dbg_declare() 2019-01-21 15:41:17 -02:00
bdisp-filter.h media: platform: sti: Adopt SPDX identifier 2017-12-13 09:54:41 -05:00
bdisp-hw.c media: sti/bdisp: don't pass GFP_DMA32 to dma_alloc_attrs 2018-12-05 05:31:46 -05:00
bdisp-reg.h media: platform: sti: Adopt SPDX identifier 2017-12-13 09:54:41 -05:00
bdisp-v4l2.c media: bdisp: fix memleak on release 2019-11-05 08:50:02 -03:00
bdisp.h media: platform: sti: Adopt SPDX identifier 2017-12-13 09:54:41 -05:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00