Re: [PATCH] net: axienet: Fix double deregister of mdio

From: David Miller
Date: Tue Jul 24 2018 - 19:38:32 EST


From: <shubhrajyoti.datta@xxxxxxxxx>
Date: Tue, 24 Jul 2018 10:09:53 +0530

> From: Shubhrajyoti Datta <shubhrajyoti.datta@xxxxxxxxxx>
>
> If the registration fails then mdio_unregister is called.
> However at unbind the unregister ia attempted again resulting
> in the below crash
...
> Fix the same by making the bus NULL on unregister.
>
> Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xxxxxxxxxx>

Applied, thank you.