OpenCloudOS-Kernel/drivers/media
Yang Yingliang 6107a4fdf8 media: tc358743: fix possible use-after-free in tc358743_remove()
This driver's remove path calls cancel_delayed_work(). However, that
function does not wait until the work function finishes. This means
that the callback function may still be running after the driver's
remove function has finished, which would result in a use-after-free.

Fix by calling cancel_delayed_work_sync(), which ensures that
the work is properly cancelled, no longer running, and unable
to re-schedule itself.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-04-09 12:53:26 +02:00
..
cec media: cec/core: clarify rx-arb-lost usage message 2021-04-06 16:08:38 +02:00
common media: media/siano: Fix transmission parameters reporting for ISDB-T 2021-03-23 08:29:37 +01:00
dvb-core media: dvbdev: Fix memory leak in dvb_media_device_free() 2021-03-22 23:36:39 +01:00
dvb-frontends media: dvb-frontends: lgdt3306a.c: remove dead code 2021-03-22 17:15:53 +01:00
firewire media: firewire: fix memory leak 2020-09-27 11:29:45 +02:00
i2c media: tc358743: fix possible use-after-free in tc358743_remove() 2021-04-09 12:53:26 +02:00
mc media: entity: Add lockdep check to media graph walk 2021-04-06 14:35:14 +02:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci media: tw68: switch from 'pci_' to 'dma_' API 2021-04-06 16:07:42 +02:00
platform media: venus: don't de-reference NULL pointers at IRQ time 2021-04-08 10:04:20 +02:00
radio media: radio-si476x: rectify spelling and grammar 2021-03-22 11:58:42 +01:00
rc media: fix incorrect kernel doc usages 2021-03-11 11:59:44 +01:00
spi media: use getter/setter functions 2021-03-11 11:59:42 +01:00
test-drivers media: vivid: add read-only int32 control 2021-04-06 16:04:24 +02:00
tuners media: m88rs6000t: avoid potential out-of-bounds reads on arrays 2021-03-22 17:41:39 +01:00
usb media: em28xx/em28xx.h: Remove duplicate struct declaration 2021-04-06 16:11:54 +02:00
v4l2-core media: v4l2-ctrls.c: fix race condition in hdl->requests list 2021-04-06 16:05:33 +02:00
Kconfig media: Correct 'so' 2021-03-22 11:52:09 +01:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00