Re: [PATCH net] net: phy: bcm84881: Fix some error handling paths

From: Florian Fainelli
Date: Thu Oct 03 2024 - 15:04:35 EST


On 10/3/24 12:03, Christophe JAILLET wrote:
If phy_read_mmd() fails, the error code stored in 'bmsr' should be returned
instead of 'val' which is likely to be 0.

Fixes: 75f4d8d10e01 ("net: phy: add Broadcom BCM84881 PHY driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>

Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
--
Florian