linux-stable/drivers/media
Yunfei Dong 51c84a8aac media: mediatek: vcodec: adding lock to protect encoder context list
[ Upstream commit afaaf3a0f6 ]

Add a lock for the ctx_list, to avoid accessing a NULL pointer
within the 'vpu_enc_ipi_handler' function when the ctx_list has
been deleted due to an unexpected behavior on the SCP IP block.

Fixes: 1972e32431 ("media: mediatek: vcodec: Fix possible invalid memory access for encoder")
Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-13 13:10:11 +02:00
..
cec media: platform: cros-ec: Add Dexi to the match table 2023-11-23 13:39:09 +01:00
common media: v4l2-tpg: fix some memleaks in tpg_alloc 2024-03-26 18:17:02 -04:00
dvb-core media: edia: dvbdev: fix a use-after-free 2024-03-26 18:17:03 -04:00
dvb-frontends media: dvb-frontends: avoid stack overflow warnings with clang 2024-03-26 18:17:14 -04:00
firewire media: firewire: firedtv-avc.c: replace BUG with proper, error return 2023-08-10 07:58:37 +02:00
i2c media: i2c: imx290: Fix IMX920 typo 2024-03-26 18:17:10 -04:00
mc media: mc: Expand MUST_CONNECT flag to always require an enabled link 2024-04-03 15:32:03 +02:00
mmc
pci media: sta2x11: fix irq handler cast 2024-04-13 13:10:05 +02:00
platform media: mediatek: vcodec: adding lock to protect encoder context list 2024-04-13 13:10:11 +02:00
radio media: radio-si476x: don't fill in bus_info 2023-09-27 10:47:23 +02:00
rc media: pwm-ir-tx: Depend on CONFIG_HIGH_RES_TIMERS 2024-02-01 13:49:39 +01:00
spi
test-drivers media updates for v6.8-rc1 2024-01-12 14:29:48 -08:00
tuners media: xc4000: Fix atomicity violation in xc4000_get_frequency 2024-04-03 15:32:02 +02:00
usb media: usbtv: Remove useless locks in usbtv_video_free() 2024-03-26 18:17:16 -04:00
v4l2-core media: v4l2-mem2mem: fix a memleak in v4l2_m2m_register_entity 2024-03-26 18:17:02 -04:00
Kconfig
Makefile