]> git.ipfire.org Git - people/arne_f/kernel.git/commit
drm/mediatek: Add exception handing in mtk_drm_probe() if component init fail
authorYu Kuai <yukuai3@huawei.com>
Wed, 9 Sep 2020 08:49:42 +0000 (16:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Sep 2020 08:46:35 +0000 (10:46 +0200)
commit58bc043fb7c3b54cc87c63ae7817bae736d8f347
tree4f0b211a3e8dfa83fd6fb0b96e49b76454268d9a
parent28bb1d7a489e10cb902b5cd5eaccf893efa436e1
drm/mediatek: Add exception handing in mtk_drm_probe() if component init fail

[ Upstream commit 64c194c00789889b0f9454f583712f079ba414ee ]

mtk_ddp_comp_init() is called in a loop in mtk_drm_probe(), if it
fail, previous successive init component is not proccessed.

Thus uninitialize valid component and put their device if component
init failed.

Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/mediatek/mtk_drm_drv.c