]> git.baikalelectronics.ru Git - 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)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Wed, 16 Sep 2020 22:58:01 +0000 (06:58 +0800)
commitce187ac73368a910c693cb70099fd27e107dfb27
treea249801f026fb44fddaaeb8107254ecd689fb59a
parent720a07946e3ea5509ab65807aff687ca966d0810
drm/mediatek: Add missing put_device() call in mtk_hdmi_dt_parse_pdata()

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: 3b1b76792a7f ("drm/mediatek: Add HDMI support")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_hdmi.c