linux/drivers/media/platform/mediatek/vcodec/common
Jiasheng Jiang 4936cd5817 media: mediatek: vcodec: Fix a resource leak related to the scp device in FW initialization
On Mediatek devices with a system companion processor (SCP) the mtk_scp
structure has to be removed explicitly to avoid a resource leak.
Free the structure in case the allocation of the firmware structure fails
during the firmware initialization.

Fixes: 53dbe08504 ("media: mtk-vcodec: potential null pointer deference in SCP")
Cc: stable@vger.kernel.org
Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2025-02-21 10:33:02 +01:00
..
Makefile
mtk_vcodec_cmn_drv.h
mtk_vcodec_dbgfs.c
mtk_vcodec_dbgfs.h
mtk_vcodec_fw.c
mtk_vcodec_fw.h
mtk_vcodec_fw_priv.h
mtk_vcodec_fw_scp.c media: mediatek: vcodec: Fix a resource leak related to the scp device in FW initialization 2025-02-21 10:33:02 +01:00
mtk_vcodec_fw_vpu.c media: mediatek: vcodec: adding lock to protect encoder context list 2024-03-26 09:52:59 +01:00
mtk_vcodec_intr.c
mtk_vcodec_intr.h
mtk_vcodec_util.c media: mediatek: vcodec: Alloc DMA memory with DMA_ATTR_ALLOC_SINGLE_PAGES 2024-06-10 10:24:11 +02:00
mtk_vcodec_util.h