linux-uconsole/drivers/media/platform
Hans Verkuil 424b75b799 media: vim2m: only cancel work if it is for right context
[ Upstream commit 240809ef66 ]

cancel_delayed_work_sync() was called for any queue, but it should only
be called for the queue that is associated with the currently running job.

Otherwise, if two filehandles are streaming at the same time, then closing the
first will cancel the work which might still be running for a job from the
second filehandle. As a result the second filehandle will never be able to
finish the job and an attempt to stop streaming on that second filehandle will
stall.

Fixes: 52117be68b ("media: vim2m: use cancel_delayed_work_sync instead of flush_schedule_work")

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: <stable@vger.kernel.org>      # for v4.20 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-09-16 08:22:02 +02:00
..
am437x treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
atmel media: atmel-isi: move of_node_put() to cover success branch as well 2018-06-28 06:50:28 -04:00
cadence media: v4l: cadence: add VIDEO_V4L2 dependency 2018-06-27 09:51:49 -04:00
cec-gpio media: cec-gpio: support 5v testing 2018-07-25 07:12:36 -04:00
coda media: coda: Remove unbalanced and unneeded mutex unlock 2019-07-26 09:14:24 +02:00
cros-ec-cec media: platform: Add ChromeOS EC CEC driver 2018-07-13 08:44:46 +01:00
davinci media: vpss: fix a potential NULL pointer dereference 2019-07-26 09:14:00 +02:00
exynos-gsc media: exynos-gsc: fix return code if mutex was interrupted 2018-08-08 10:57:14 -04:00
exynos4-is media: exynos4-is: Prevent NULL pointer dereference in __isp_video_try_fmt() 2018-07-04 12:59:19 -04:00
marvell-ccic media: marvell-ccic: fix DMA s/g desc number calculation 2019-07-26 09:14:00 +02:00
meson media: platform: meson-ao-cec: make busy TX warning silent 2018-07-24 17:52:20 -04:00
mtk-jpeg media: mtk-jpeg: Correct return type for mem2mem buffer helpers 2019-04-05 22:33:06 +02:00
mtk-mdp media: mem2mem: Make .job_abort optional 2018-07-24 17:45:08 -04:00
mtk-vcodec media: mtk-vcodec: Release device nodes in mtk_vcodec_init_enc_pm() 2019-02-12 19:47:01 +01:00
mtk-vpu media: mtk-vpu: fix spelling mistake: "Prosessor" -> "Processor" 2018-06-28 06:39:34 -04:00
omap omap-dma/omap_vout_vrfb: fix off-by-one fi value 2019-09-06 10:21:56 +02:00
omap3isp media: omap3isp: Unregister media device as first 2018-12-13 09:16:09 +01:00
qcom media: venus: core: Set dma maximum segment size 2019-01-26 09:32:38 +01:00
rcar-vin media: rcar-vin: Allow independent VIN link enablement 2019-04-05 22:33:15 +02:00
rockchip/rga media: rockchip/rga: Correct return type for mem2mem buffer helpers 2019-04-05 22:33:05 +02:00
s3c-camif media: s3c-camif: fix return code for the polling routine 2018-08-08 10:57:14 -04:00
s5p-cec
s5p-g2d media: s5p-g2d: Correct return type for mem2mem buffer helpers 2019-04-05 22:33:05 +02:00
s5p-jpeg media: s5p-jpeg: Check for fmt_ver_flag when doing fmt enumeration 2019-04-05 22:33:15 +02:00
s5p-mfc media: s5p-mfc: Make additional clocks optional 2019-07-26 09:14:10 +02:00
soc_camera media: sh_mobile_ceu: convert to SPDX identifiers 2018-08-03 16:06:08 -04:00
sti media: headers: fix linux/mod_devicetable.h inclusions 2018-08-02 18:30:54 -04:00
stm32 media: stm32-dcmi: fix irq = 0 case 2019-09-16 08:21:43 +02:00
tegra-cec
ti-vpe media: mem2mem: Remove unused v4l2_m2m_ops .lock/.unlock 2018-06-28 07:56:49 -04:00
vicodec media: vicodec: fix memchr() kernel oops 2018-12-13 09:16:17 +01:00
vimc media: vimc: cap: check v4l2_fill_pixfmt return value 2019-07-26 09:14:11 +02:00
vivid media: cec/v4l2: move V4L2 specific CEC functions to V4L2 2019-09-16 08:21:46 +02:00
vsp1 media updates for v4.19-rc1 2018-08-15 18:29:14 -07:00
xilinx treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
fsl-viu.c media: fsl-viu: fix error handling in viu_of_probe() 2018-07-04 08:30:42 -04:00
Kconfig media: platform: fix cros-ec-cec build error 2018-09-17 14:32:29 -04:00
m2m-deinterlace.c media: m2m-deinterlace: Implement wait_prepare and wait_finish 2018-07-04 08:03:04 -04:00
Makefile - New Drivers 2018-08-20 15:38:44 -07:00
mx2_emmaprp.c media: mx2_emmaprp: Correct return type for mem2mem buffer helpers 2019-04-05 22:33:06 +02:00
pxa_camera.c media: pxa_camera: remove the dmaengine compat need 2018-06-18 21:29:40 +02:00
rcar-fcp.c Char/Misc driver patches for 4.19-rc1 2018-08-18 11:04:51 -07:00
rcar_drif.c media: rcar_drif: convert to SPDX identifiers 2018-08-03 16:04:29 -04:00
rcar_fdp1.c media: fdp1: Support M3N and E3 platforms 2019-07-26 09:14:06 +02:00
rcar_jpu.c media: rcar_jpu: convert to SPDX identifiers 2018-08-03 16:05:08 -04:00
renesas-ceu.c media: renesas-ceu: Add support for YUYV permutations 2018-06-28 06:51:05 -04:00
sh_veu.c media: sh_veu: Correct return type for mem2mem buffer helpers 2019-04-05 22:33:05 +02:00
sh_vou.c media: sh_vou: convert to SPDX identifiers 2018-08-03 16:05:51 -04:00
via-camera.c fbdev changes for v4.18: 2018-06-17 05:00:24 +09:00
via-camera.h
video-mux.c media: video-mux: fix null pointer dereferences 2019-05-31 06:46:29 -07:00
vim2m.c media: vim2m: only cancel work if it is for right context 2019-09-16 08:22:02 +02:00