WSL2-Linux-Kernel/drivers/media
Hans Verkuil 240809ef66 media: vim2m: only cancel work if it is for right context
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>
2019-01-16 11:13:25 -05:00
..
cec media: cec: keep track of outstanding transmits 2018-11-23 05:56:14 -05:00
common media fixes for v4.20-rc8 2018-12-25 13:11:30 -08:00
dvb-core media: dvb_frontend: add debug message for frequency intervals 2018-11-23 11:59:45 -05:00
dvb-frontends media: drxk_hard: check if parameter is not NULL 2018-12-17 14:43:10 -05:00
firewire media: firewire: Fix app_info parameter type in avc_ca{,_app}_info 2018-12-05 05:34:33 -05:00
i2c media fixes for v4.20-rc8 2018-12-25 13:00:14 -08:00
mmc
pci cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
platform media: vim2m: only cancel work if it is for right context 2019-01-16 11:13:25 -05:00
radio
rc Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2018-12-27 13:04:52 -08:00
spi media: cxd2880-spi: Add optional vcc regulator 2018-12-03 13:33:16 -05:00
tuners
usb media: siano: Use kmemdup instead of duplicating its function 2018-12-07 09:42:18 -05:00
v4l2-core media: v4l: ioctl: Validate num_planes for debug messages 2019-01-16 11:12:38 -05:00
Kconfig media: Add a Kconfig option for the Request API 2018-12-05 13:07:43 -05:00
Makefile
media-device.c media: Add a Kconfig option for the Request API 2018-12-05 13:07:43 -05:00
media-devnode.c
media-entity.c
media-request.c media: media-request: Add compat ioctl 2018-11-20 12:53:27 -05:00