]> git.baikalelectronics.ru Git - kernel.git/commit
drm/meson: encoder_hdmi: Fix refcount leak in meson_encoder_hdmi_init
authorMiaoqian Lin <linmq006@gmail.com>
Wed, 1 Jun 2022 03:39:27 +0000 (07:39 +0400)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 7 Jun 2022 12:25:16 +0000 (14:25 +0200)
commitf2017b9b879baa45ceacd6e808649f268a3126ee
tree340297a4cd9a71530cd8b3d6dccc2c964a9fd52f
parent746d2430082a98de25b117647ba4fbad38cdda3f
drm/meson: encoder_hdmi: Fix refcount leak in meson_encoder_hdmi_init

of_graph_get_remote_node() returns remote device nodepointer with
refcount incremented, we should use of_node_put() on it when done.
Add missing of_node_put() to avoid refcount leak.

Fixes: 14d402143ac8 ("drm/meson: split out encoder from meson_dw_hdmi")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220601033927.47814-3-linmq006@gmail.com
drivers/gpu/drm/meson/meson_encoder_hdmi.c