]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mediatek: Add missing put_device() call in mtk_drm_kms_init()
authorYu Kuai <yukuai3@huawei.com>
Fri, 11 Sep 2020 11:21:19 +0000 (19:21 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Wed, 16 Sep 2020 22:58:01 +0000 (06:58 +0800)
commit720a07946e3ea5509ab65807aff687ca966d0810
treeb93debff322d02cc763c27c8362a3e1843b515e5
parent750759bdabe4538555c1724da81e2d618556a29f
drm/mediatek: Add missing put_device() call in mtk_drm_kms_init()

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: 8f0f8d0f3cce ("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>
drivers/gpu/drm/mediatek/mtk_drm_drv.c