linux-stable/drivers/media
Hans Verkuil 288eceb085 media: cec-adap.c: don't use flush_scheduled_work()
For some inexplicable reason I decided to call flush_scheduled_work()
instead of cancel_delayed_work_sync(). The problem with that is that
flush_scheduled_work() waits for *all* queued scheduled work to be
completed instead of just the work itself.

This can cause a deadlock if a CEC driver also schedules work that
takes the same lock. See the comments for flush_scheduled_work() in
linux/workqueue.h.

This is exactly what has been observed a few times.

This patch simply replaces flush_scheduled_work() by
cancel_delayed_work_sync().

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: <stable@vger.kernel.org>      # for v5.8 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-09-10 14:05:10 +02:00
..
cec media: cec-adap.c: don't use flush_scheduled_work() 2020-09-10 14:05:10 +02:00
common media: videobuf2: Print videobuf2 buffer state by name 2020-07-19 14:25:36 +02:00
dvb-core media: videobuf2: add queue memory consistency parameter 2020-06-23 13:31:12 +02:00
dvb-frontends media updates for v5.9-rc1 2020-08-07 13:00:53 -07:00
firewire media: firewire: Using uninitialized values in node_probe() 2020-07-04 11:57:10 +02:00
i2c media: max9286: Depend on OF_GPIO 2020-08-28 11:03:36 +02:00
mc media: media-request: Fix crash if memory allocation fails 2020-06-23 15:19:37 +02:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci pci-v5.9-changes 2020-08-07 18:48:15 -07:00
platform media: ti-vpe: cal: Fix compilation on 32-bit ARM 2020-08-26 16:28:57 +02:00
radio media: radio: remove redundant assignment to variable retval 2020-08-06 11:28:21 +02:00
rc media: mceusb: Avoid GFP_ATOMIC where it is not needed 2020-08-28 14:06:36 +02:00
spi media: i2c/Kconfig: use sub-menus for I2C support 2020-04-16 10:34:40 +02:00
test-drivers media: vicodec: add missing v4l2_ctrl_request_hdl_put() 2020-08-27 09:30:20 +02:00
tuners treewide: Remove uninitialized_var() usage 2020-07-16 12:35:15 -07:00
usb media updates for v5.9-rc1 2020-08-07 13:00:53 -07:00
v4l2-core media: media/v4l2-core: Fix kernel-infoleak in video_put_user() 2020-08-26 16:29:36 +02:00
Kconfig media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00