]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/hdmi: Fix missing put_device() call in msm_hdmi_get_phy
authorMiaoqian Lin <linmq006@gmail.com>
Fri, 7 Jan 2022 08:50:22 +0000 (08:50 +0000)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 25 Jan 2022 02:44:54 +0000 (05:44 +0300)
commit8075e02030abf4e325df3dafe40693f4dd8180db
treecf1a73b7cecdda9e43453b0351241ae4a091d9c7
parent0d8befe59e1297a236690a8b53612323b569b436
drm/msm/hdmi: Fix missing put_device() call in msm_hdmi_get_phy

The reference taken by 'of_find_device_by_node()' must be released when
not needed anymore.
Add the corresponding 'put_device()' in the error handling path.

Fixes: 759a4a9ba44f ("drm/msm/hdmi: Make HDMI core get its PHY")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20220107085026.23831-1-linmq006@gmail.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/hdmi/hdmi.c