linux/drivers/media/platform/vsp1
Laurent Pinchart b4dfb9b35a [media] v4l: vsp1: Stop the pipeline upon the first STREAMOFF
The device is stopped when STREAMOFF is called on the last video node in
the pipeline. This results in possible memory corruption and/or crashes,
as userspace could free buffers while the hardware is still writing to
them, and the frame completion interrupt handler could try to access
buffers that don't exist anymore.

Fix this by stopping the pipeline upon the first STREAMOFF call, not the
last.

Reported-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-06-28 12:04:18 -03:00
..
Makefile [media] v4l: vsp1: Add display list support 2016-02-19 09:40:47 -02:00
vsp1_bru.c [media] v4l: vsp1: Constify operation structures 2016-06-28 12:03:30 -03:00
vsp1_bru.h [media] v4l: vsp1: Store active selection rectangles in a pad config structure 2016-04-13 18:53:22 -03:00
vsp1_dl.c [media] v4l: vsp1: dl: Add support for multi-body display lists 2016-04-13 19:13:23 -03:00
vsp1_dl.h [media] v4l: vsp1: dl: Add support for multi-body display lists 2016-04-13 19:13:23 -03:00
vsp1_drm.c [media] v4l: vsp1: Remove deprecated DRM API 2016-06-20 20:09:10 -03:00
vsp1_drm.h [media] v4l: vsp1: Add Z-order support for DRM pipeline 2016-04-13 19:15:03 -03:00
vsp1_drv.c [media] v4l: vsp1: Fix descriptions of Gen2 VSP instances 2016-06-28 11:58:10 -03:00
vsp1_entity.c [media] v4l: vsp1: Make vsp1_entity_get_pad_compose() more generic 2016-06-17 08:14:36 -03:00
vsp1_entity.h [media] v4l: vsp1: Make vsp1_entity_get_pad_compose() more generic 2016-06-17 08:14:36 -03:00
vsp1_hsit.c [media] v4l: vsp1: Constify operation structures 2016-06-28 12:03:30 -03:00
vsp1_hsit.h [media] v4l: vsp1: Add HST and HSI support 2013-12-11 09:22:44 -02:00
vsp1_lif.c [media] v4l: vsp1: Constify operation structures 2016-06-28 12:03:30 -03:00
vsp1_lif.h [media] v4l: vsp1: Update copyright notice 2014-03-12 10:41:51 -03:00
vsp1_lut.c [media] v4l: vsp1: Constify operation structures 2016-06-28 12:03:30 -03:00
vsp1_lut.h [media] v4l: vsp1: lut: Use display list fragments to fill LUT 2016-04-13 19:13:51 -03:00
vsp1_pipe.c [media] v4l: vsp1: Fix crash when resetting pipeline 2016-06-28 11:59:43 -03:00
vsp1_pipe.h [media] v4l: vsp1: pipe: Fix typo in comment 2016-06-28 12:00:07 -03:00
vsp1_regs.h [media] v4l: vsp1: Fix typo in register field names 2016-06-28 11:57:26 -03:00
vsp1_rpf.c [media] v4l: vsp1: Constify operation structures 2016-06-28 12:03:30 -03:00
vsp1_rwpf.c [media] v4l: vsp1: Factorize frame size enumeration code 2016-04-13 19:11:05 -03:00
vsp1_rwpf.h [media] v4l: vsp1: Store pipeline pointer in rwpf 2016-04-13 19:01:07 -03:00
vsp1_sru.c [media] v4l: vsp1: Constify operation structures 2016-06-28 12:03:30 -03:00
vsp1_sru.h [media] v4l: vsp1: sru: Don't program intensity in control set handler 2016-04-13 17:42:44 -03:00
vsp1_uds.c [media] v4l: vsp1: Constify operation structures 2016-06-28 12:03:30 -03:00
vsp1_uds.h [media] v4l: vsp1: Pass display list explicitly to configure functions 2016-04-13 18:58:36 -03:00
vsp1_video.c [media] v4l: vsp1: Stop the pipeline upon the first STREAMOFF 2016-06-28 12:04:18 -03:00
vsp1_video.h [media] v4l: vsp1: Move frame sequence number from video node to pipeline 2016-06-17 08:15:10 -03:00
vsp1_wpf.c [media] v4l: vsp1: Constify operation structures 2016-06-28 12:03:30 -03:00
vsp1.h [media] v4l: vsp1: Add FCP support 2016-06-17 08:11:45 -03:00