Skip to content

Commit 388ec8f

Browse files
Yuuoniyvinodkoul
authored andcommitted
phy: samsung: Fix missing of_node_put() in exynos_sata_phy_probe
The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. Fixes: bcff4cb ("PHY: Exynos: Add Exynos5250 SATA PHY driver") Signed-off-by: Miaoqian Lin <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 751ee15 commit 388ec8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/phy/samsung/phy-exynos5250-sata.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ static int exynos_sata_phy_probe(struct platform_device *pdev)
187187
return -EINVAL;
188188

189189
sata_phy->client = of_find_i2c_device_by_node(node);
190+
of_node_put(node);
190191
if (!sata_phy->client)
191192
return -EPROBE_DEFER;
192193

0 commit comments

Comments
 (0)