media: platform: mtk-mdp3: fix error handling in mdp_probe()
authorMoudy Ho <moudy.ho@mediatek.com>
Thu, 20 Oct 2022 07:18:00 +0000 (15:18 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 4 Nov 2022 15:56:30 +0000 (16:56 +0100)
commit82b7d4b5d393d6654148e885efca0a3df63806f6
treeba18d6a272d0ff53b27d319233ea74d46eb5858b
parent74a596e7fca6d240d61def5f448e55c256c12fed
media: platform: mtk-mdp3: fix error handling in mdp_probe()

Adjust label "err_return" order to avoid double freeing, and
add two labels for easy traceability.

Fixes: 61890ccaefaf ("media: platform: mtk-mdp3: add MediaTek MDP3 driver")
Signed-off-by: Moudy Ho <moudy.ho@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/mediatek/mdp3/mtk-mdp3-core.c