phy: samsung: Fix missing of_node_put() in exynos_sata_phy_probe
authorMiaoqian Lin <linmq006@gmail.com>
Thu, 7 Apr 2022 09:18:56 +0000 (11:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2022 07:14:32 +0000 (09:14 +0200)
commit3c8a02347f84985385199eddd89beba9fe132a9b
tree30d0262552a891ff19c7456f7d7d6beab62b6f9f
parentbb0f3522cf42eff3b6cb0577dcdaea3b227e28ec
phy: samsung: Fix missing of_node_put() in exynos_sata_phy_probe

[ Upstream commit 388ec8f079f2f20d5cd183c3bc6f33cbc3ffd3ef ]

The device_node pointer is returned by of_parse_phandle() with refcount
incremented. We should use of_node_put() on it when done.

Fixes: bcff4cba41bc ("PHY: Exynos: Add Exynos5250 SATA PHY driver")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220407091857.230386-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/samsung/phy-exynos5250-sata.c