OpenCloudOS-Kernel/drivers/media/platform
Yunfei Dong 41671f0c01 media: mediatek: vcodec: adding lock to protect encoder context list
[ Upstream commit afaaf3a0f647a24a7bf6a2145d8ade37baaf75ad ]

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:07:40 +02:00
..
allegro-dvt media: Explicitly include correct DT includes 2023-07-19 12:57:51 +02:00
amlogic media: ge2d: Convert to platform remove callback returning void 2023-04-11 16:59:14 +02:00
amphion media: amphion: remove mutext lock in condition of wait_event 2024-02-05 20:14:28 +00:00
aspeed media: aspeed: Fix memory overwrite if timing is 1600x900 2023-07-19 12:57:51 +02:00
atmel media: v4l: async: Set v4l2_device and subdev in async notifier init 2023-08-10 07:58:32 +02:00
cadence media: cadence: csi2rx: use match fwnode for media link 2024-03-26 18:19:43 -04:00
chips-media media: coda: Remove duplicated include 2023-08-14 20:27:58 +02:00
intel media: pxa_camera: Fix an error handling path in pxa_camera_probe() 2023-10-02 10:02:53 +02:00
marvell media: v4l: Use correct dependency for camera sensor drivers 2023-09-14 12:38:17 +02:00
mediatek media: mediatek: vcodec: adding lock to protect encoder context list 2024-04-13 13:07:40 +02:00
microchip media: v4l: async: Set v4l2_device and subdev in async notifier init 2023-08-10 07:58:32 +02:00
nvidia media: Explicitly include correct DT includes 2023-07-19 12:57:51 +02:00
nxp media: nxp: imx8-isi: Mark all crossbar sink pads as MUST_CONNECT 2024-04-03 15:28:18 +02:00
qcom media: qcom: camss: Comment CSID dt_id field 2024-01-10 17:17:02 +01:00
renesas media: rcar-csi2: Add support for C-PHY on R-Car V4H 2023-08-10 07:58:39 +02:00
rockchip media: rkisp1: Fix IRQ handling due to shared interrupts 2024-03-26 18:19:09 -04:00
samsung media: s3c-camif: Avoid inappropriate kfree() 2023-11-20 11:59:32 +01:00
st media: stm32: dcmi: only call s_stream on the source subdev 2023-08-10 07:58:36 +02:00
sunxi media: sun8i-di: Fix chroma difference threshold 2024-03-26 18:19:49 -04:00
ti media: platform: ti: fix the return value handle for platform_get_irq() 2023-08-14 20:27:55 +02:00
verisilicon media: verisilicon: Hook the (TRY_)DECODER_CMD stateless ioctls 2024-01-25 15:35:32 -08:00
via media: via: Use correct dependency for camera sensor drivers 2023-09-14 12:38:17 +02:00
xilinx media: xilinx-vipp: Look for entities also in waiting_list 2023-10-11 15:26:16 +02:00
Kconfig media: atmel: move microchip_csi2dc to dedicated microchip platform 2022-11-25 07:43:17 +00:00
Makefile media: atmel: move microchip_csi2dc to dedicated microchip platform 2022-11-25 07:43:17 +00:00
m2m-deinterlace.c media: m2m-deinterlace: Convert to platform remove callback returning void 2023-04-11 16:59:15 +02:00
video-mux.c media: v4l: async: Set v4l2_device and subdev in async notifier init 2023-08-10 07:58:32 +02:00