]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerVinod Koul <vkoul@kernel.org>
Mon, 11 Apr 2022 17:16:13 +0000 (22:46 +0530)
commit0a7b5a31b473d979887935b2fad38aca96563f9c
tree34040be31b6a16fcfc00aae355bca4094ea694e6
parent9117ad408aada4e7eea8dc27aa8c0c5df77826f0
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: 82499533c0f7 ("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>
drivers/phy/samsung/phy-exynos5250-sata.c