]> git.ipfire.org Git - people/arne_f/kernel.git/commit
drm/mediatek: Add missing put_device() call in mtk_hdmi_dt_parse_pdata()
authorYu Kuai <yukuai3@huawei.com>
Fri, 11 Sep 2020 11:21:51 +0000 (19:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Sep 2020 08:46:35 +0000 (10:46 +0200)
commit1a267aeef1dec8e20f0ad2e8a2798861e33a0556
tree2fa2287101ade98546e6b80a595b5685e40ea053
parent58bc043fb7c3b54cc87c63ae7817bae736d8f347
drm/mediatek: Add missing put_device() call in mtk_hdmi_dt_parse_pdata()

[ Upstream commit 0680a622318b8d657323b94082f4b9a44038dfee ]

if of_find_device_by_node() succeed, mtk_drm_kms_init() doesn't have
a corresponding put_device(). Thus add jump target to fix the exception
handling for this function implementation.

Fixes: 8f83f26891e1 ("drm/mediatek: Add HDMI support")
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_hdmi.c