]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:46:57 +0000 (14:46 +0100)
commit5af09d34c67c5dc9b00051d41bb588d5756461cc
tree1b80975c8292a38e75ae6cabe675f475e6e87756
parent9258922a6c1c6f78e50ff1c6a74611e54b09f8c5
drm/mediatek: Add missing put_device() call in mtk_hdmi_dt_parse_pdata()

BugLink: https://bugs.launchpad.net/bugs/1896828
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>
drivers/gpu/drm/mediatek/mtk_hdmi.c