]> git.baikalelectronics.ru Git - kernel.git/commit
phy: samsung: exynos5250-sata: fix missing device put in probe error paths
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 7 Apr 2022 09:18:57 +0000 (11:18 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 11 Apr 2022 17:17:42 +0000 (22:47 +0530)
commitf7987f33aac621798b357348a978891d19c3f792
treed0b8df0841572025d5fad25ce4f7c1bb8565e7b8
parent0a7b5a31b473d979887935b2fad38aca96563f9c
phy: samsung: exynos5250-sata: fix missing device put in probe error paths

The actions of of_find_i2c_device_by_node() in probe function should be
reversed in error paths by putting the reference to obtained device.

Fixes: 82499533c0f7 ("PHY: Exynos: Add Exynos5250 SATA PHY driver")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Link: https://lore.kernel.org/r/20220407091857.230386-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/samsung/phy-exynos5250-sata.c