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 <[email protected]> Signed-off-by: Lv Ruyi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent b541f9e commit 751ee15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)