]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/mdp4: Fix refcount leak in mdp4_modeset_init_intf
authorMiaoqian Lin <linmq006@gmail.com>
Tue, 7 Jun 2022 11:08:38 +0000 (15:08 +0400)
committerRob Clark <robdclark@chromium.org>
Sat, 18 Jun 2022 16:14:05 +0000 (09:14 -0700)
commite4fdf687fed118626fb4fdabc7b8c85a6f8e95be
treed04e023999ecb8f3593d1a411add1241f46c4519
parentbbf1646516d015f84804836e73f1eb8a604ab3c2
drm/msm/mdp4: Fix refcount leak in mdp4_modeset_init_intf

of_graph_get_remote_node() returns remote device node pointer with
refcount incremented, we should use of_node_put() on it
when not need anymore.
Add missing of_node_put() to avoid refcount leak.

Fixes: 5a2ac032f13c ("drm: convert drivers to use of_graph_get_remote_node")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/488473/
Link: https://lore.kernel.org/r/20220607110841.53889-1-linmq006@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c