]> git.baikalelectronics.ru Git - kernel.git/commit
phy: ti: Fix missing of_node_put in ti_pipe3_get_sysctrl()
authorLv Ruyi <lv.ruyi@zte.com.cn>
Fri, 8 Apr 2022 09:56:17 +0000 (09:56 +0000)
committerVinod Koul <vkoul@kernel.org>
Mon, 11 Apr 2022 17:15:31 +0000 (22:45 +0530)
commit9117ad408aada4e7eea8dc27aa8c0c5df77826f0
tree5d258b03cca74bb5f8015740f89945eb8c2a3955
parent3a3f4050b4b174dad78ee9a1f1e1998526b26a46
phy: ti: Fix missing of_node_put in ti_pipe3_get_sysctrl()

of_parse_phandle() returns node pointer with refcount incremented, use
of_node_put() on it to decrease refcount when done.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Link: https://lore.kernel.org/r/20220408095617.2495234-1-lv.ruyi@zte.com.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/ti/phy-ti-pipe3.c