]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge: tc358767: Add of_node_put() when breaking out of loop
authorLiang He <windhl@126.com>
Tue, 19 Jul 2022 06:54:47 +0000 (14:54 +0800)
committerRobert Foss <robert.foss@linaro.org>
Tue, 19 Jul 2022 12:48:48 +0000 (14:48 +0200)
commitc858913f079539cd2e7c0e35bcdfa04b5a826e92
tree3a02c6fd8d24fdc4add5b3ae1b16bada0e3c8a21
parent7910f229c8981ba146faec72980e30b501d3fba0
drm/bridge: tc358767: Add of_node_put() when breaking out of loop

In tc_probe_bridge_endpoint(), we should call of_node_put() when
breaking out of the for_each_endpoint_of_node() which will automatically
increase and decrease the refcount.

Fixes: d6341964b973 ("drm/bridge: tc358767: Detect bridge mode from connected endpoints in DT")
Signed-off-by: Liang He <windhl@126.com>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220719065447.1080817-2-windhl@126.com
drivers/gpu/drm/bridge/tc358767.c