android_kernel_xiaomi_sm8450/drivers/media
Hans Verkuil 9f6da5da3d media: cec: cec-api: add locking in cec_release()
[ Upstream commit 42bcaacae924bf18ae387c3f78c202df0b739292 ]

When cec_release() uses fh->msgs it has to take fh->lock,
otherwise the list can get corrupted.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reported-by: Yang, Chenyuan <cy54@illinois.edu>
Closes: https://lore.kernel.org/linux-media/PH7PR11MB57688E64ADE4FE82E658D86DA09EA@PH7PR11MB5768.namprd11.prod.outlook.com/
Fixes: ca684386e6 ("[media] cec: add HDMI CEC framework (api)")
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-16 13:32:24 +02:00
..
cec media: cec: cec-api: add locking in cec_release() 2024-06-16 13:32:24 +02:00
common media: v4l2-tpg: fix some memleaks in tpg_alloc 2024-03-26 18:21:55 -04:00
dvb-core media: edia: dvbdev: fix a use-after-free 2024-03-26 18:21:56 -04:00
dvb-frontends media: dvb-frontends: avoid stack overflow warnings with clang 2024-03-26 18:21:59 -04:00
firewire media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt() 2021-11-06 14:10:09 +01:00
i2c media: tc358743: register v4l2 async device only after successful setup 2024-03-26 18:21:55 -04:00
mc media: Fix Media Controller API config checks 2021-07-14 16:55:56 +02:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci media: ngene: Add dvb_ca_en50221_init return value check 2024-06-16 13:32:11 +02:00
platform media: mediatek: vcodec: avoid -Wcast-function-type-strict warning 2024-03-26 18:21:59 -04:00
radio media: radio-shark2: Avoid led_names truncations 2024-06-16 13:32:11 +02:00
rc media: rc: bpf attach/detach requires write permission 2024-02-23 08:42:27 +01:00
spi media: cxd2880-spi: Fix a null pointer dereference on error handling path 2021-11-18 14:04:04 +01:00
test-drivers media: vivid: avoid integer overflow 2023-11-28 16:54:52 +00:00
tuners media: xc4000: Fix atomicity violation in xc4000_get_frequency 2024-04-13 12:58:03 +02:00
usb media: flexcop-usb: fix sanity check of bNumEndpoints 2024-06-16 13:32:24 +02:00
v4l2-core media: v4l2-mem2mem: fix a memleak in v4l2_m2m_register_entity 2024-03-26 18:21:56 -04:00
Kconfig media: correct MEDIA_TEST_SUPPORT help text 2022-01-27 10:54:29 +01:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00