Files
linux-stable-mirror/drivers/media/platform/mediatek/vcodec/common
Jiasheng JiangandGreg Kroah-Hartman fd7bb97ede media: mediatek: vcodec: Fix a resource leak related to the scp device in FW initialization
commit 4936cd5817 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-04-25 10:45:21 +02:00
..