Skip to content

Commit 25b9e4b

Browse files
committed
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()
2 parents 3fce396 + 8502801 commit 25b9e4b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/phy/ti/phy-am654-serdes.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,10 @@ static int serdes_am654_probe(struct platform_device *pdev)
725725
pm_runtime_enable(dev);
726726

727727
phy = devm_phy_create(dev, NULL, &ops);
728-
if (IS_ERR(phy))
729-
return PTR_ERR(phy);
728+
if (IS_ERR(phy)) {
729+
ret = PTR_ERR(phy);
730+
goto clk_err;
731+
}
730732

731733
phy_set_drvdata(phy, am654_phy);
732734
phy_provider = devm_of_phy_provider_register(dev, serdes_am654_xlate);

0 commit comments

Comments
 (0)