[Intel-wired-lan] [PATCH net] ixgbe: fix mdio bus registration

Bowers, AndrewX andrewx.bowers at intel.com
Thu Mar 21 22:32:47 UTC 2019


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Ivan Vecera
> Sent: Friday, March 15, 2019 1:45 AM
> To: netdev at vger.kernel.org
> Cc: open list <linux-kernel at vger.kernel.org>; moderated list:INTEL
> ETHERNET DRIVERS <intel-wired-lan at lists.osuosl.org>; David S. Miller
> <davem at davemloft.net>
> Subject: [Intel-wired-lan] [PATCH net] ixgbe: fix mdio bus registration
> 
> The ixgbe ignores errors returned from mdiobus_register() and leaves
> adapter->mii_bus non-NULL and MDIO bus state as MDIOBUS_ALLOCATED.
> This triggers a BUG from mdiobus_unregister() during ixgbe_remove() call.
> 
> Fixes: 8fa10ef01260 ("ixgbe: register a mdiobus")
> Signed-off-by: Ivan Vecera <ivecera at redhat.com>
> ---
>  drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c | 16 +++++++++-------
>  1 file changed, 9 insertions(+), 7 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list