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

From: Michal Simek
Date: Wed Nov 20 2019 - 01:48:14 EST


On 19. 11. 19 19:04, Florian Fainelli wrote:
> 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
>

Works for me.

Thanks,
Michal