linux/drivers/media/platform/mediatek
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
..
jpeg media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
mdp media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
mdp3 media: platform: mtk-mdp3: Use cmdq_pkt_create() and cmdq_pkt_destroy() 2024-12-13 17:30:58 +01:00
vcodec media: mediatek: vcodec: Fix a resource leak related to the scp device in FW initialization 2025-02-21 10:33:02 +01:00
vpu media: Switch back to struct platform_driver::remove() 2024-10-12 16:28:25 +02:00
Kconfig media: platform: mtk-mdp3: add MediaTek MDP3 driver 2022-08-30 16:25:51 +02:00
Makefile media: platform: mtk-mdp3: add MediaTek MDP3 driver 2022-08-30 16:25:51 +02:00