Re: [PATCH] phy: mdio_bus: Check ENOTSUPP instead of ENOSYS in mdiobus_register_reset

From: Florian Fainelli
Date: Tue Nov 19 2019 - 13:05:01 EST


On 11/19/19 5:27 AM, Michal Simek wrote:
> Origin patch was using ENOTSUPP instead of ENOSYS. Silently changing error
> value ends up in an access to bad area on Microblaze with axi ethernet
> driver.
>
> Fixes: 1d4639567d97 ("mdio_bus: Fix PTR_ERR applied after initialization to constant")
> Signed-off-by: Michal Simek <michal.simek@xxxxxxxxxx>

This has been fixed in the "net" tree already:

https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git/commit/?id=075e238d12c21c8bde700d21fb48be7a3aa80194
--
Florian