linux/drivers/media/platform/mtk-vpu
Christophe JAILLET 2143ad413c media: mtk-vpu: Fix a resource leak in the error handling path of 'mtk_vpu_probe()'
A successful 'clk_prepare()' call should be balanced by a corresponding
'clk_unprepare()' call in the error handling path of the probe, as already
done in the remove function.

Update the error handling path accordingly.

Fixes: 3003a180ef ("[media] VPU: mediatek: support Mediatek VPU")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Houlong Wei <houlong.wei@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-09-30 10:07:55 +02:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mtk_vpu.c media: mtk-vpu: Fix a resource leak in the error handling path of 'mtk_vpu_probe()' 2021-09-30 10:07:55 +02:00
mtk_vpu.h media: mtk-vpu/mtk_vpu.h: fix kernel-doc warnings 2021-03-22 12:59:50 +01:00