aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-09-29 17:21:54 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-09-29 17:21:54 +0200
commit25b9e4b31ed5724b1f37a8a46fd50c6bafa6745c (patch)
treeb1ec55f8edca8e4b65355cc22e518790833b3f13 /drivers/phy
parentusbcore/driver: Accommodate usbip (diff)
parentphy: ti: am654: Fix a leak in serdes_am654_probe() (diff)
downloadlinux-dev-25b9e4b31ed5724b1f37a8a46fd50c6bafa6745c.tar.xz
linux-dev-25b9e4b31ed5724b1f37a8a46fd50c6bafa6745c.zip
Merge tag 'phy-fixes-2-5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy into usb-linus
Vinod writes: phy: Second round of fixes for 5.9 *) Fix of leak in TI phy driver * tag 'phy-fixes-2-5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy: phy: ti: am654: Fix a leak in serdes_am654_probe()
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/ti/phy-am654-serdes.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/phy/ti/phy-am654-serdes.c b/drivers/phy/ti/phy-am654-serdes.c
index a174b3c3f010..819c49af169a 100644
--- a/drivers/phy/ti/phy-am654-serdes.c
+++ b/drivers/phy/ti/phy-am654-serdes.c
@@ -725,8 +725,10 @@ static int serdes_am654_probe(struct platform_device *pdev)
pm_runtime_enable(dev);
phy = devm_phy_create(dev, NULL, &ops);
- if (IS_ERR(phy))
- return PTR_ERR(phy);
+ if (IS_ERR(phy)) {
+ ret = PTR_ERR(phy);
+ goto clk_err;
+ }
phy_set_drvdata(phy, am654_phy);
phy_provider = devm_of_phy_provider_register(dev, serdes_am654_xlate);