linux/drivers/media/platform/mediatek/vcodec
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
..
common media: mediatek: vcodec: Fix a resource leak related to the scp device in FW initialization 2025-02-21 10:33:02 +01:00
decoder media: mediatek: vcodec: mark vdec_vp9_slice_map_counts_eob_coef noinline 2024-12-13 17:51:35 +01:00
encoder media: mtk-vcodec: venc: avoid -Wenum-compare-conditional warning 2025-02-21 10:33:00 +01:00
Kconfig media: drop CONFIG_MEDIA_CONTROLLER_REQUEST_API 2023-11-23 13:03:45 +01:00
Makefile media: mediatek: vcodec: separate decoder and encoder 2023-08-10 07:58:34 +02:00