]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: phy: mscc: Handle devm_phy_package_join() failure in vsc85xx_probe_common()
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Wed, 12 Nov 2025 13:57:15 +0000 (13:57 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 14 Nov 2025 01:48:43 +0000 (17:48 -0800)
commitdf397943196f7ff396beb41449583b4629ee99e2
tree3cdea1d7e1341b1de7a829e34c8ee7f68e3b6844
parenteb47c5c4888d86d4f2bfd1513f4cf79a920e65b5
net: phy: mscc: Handle devm_phy_package_join() failure in vsc85xx_probe_common()

devm_phy_package_join() may fail and return a negative error code.
Update vsc85xx_probe_common() to properly handle this failure by
checking the return value and propagating the error to the caller.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20251112135715.1017117-5-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/mscc/mscc_main.c