Skip to content

Commit 751ee15

Browse files
Lv Ruyivinodkoul
authored andcommitted
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>
1 parent b541f9e commit 751ee15

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/phy/ti/phy-ti-pipe3.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,7 @@ static int ti_pipe3_get_sysctrl(struct ti_pipe3 *phy)
696696
}
697697

698698
control_pdev = of_find_device_by_node(control_node);
699+
of_node_put(control_node);
699700
if (!control_pdev) {
700701
dev_err(dev, "Failed to get control device\n");
701702
return -EINVAL;

0 commit comments

Comments
 (0)