]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ixgbe: fix mdio bus registration
authorIvan Vecera <ivecera@redhat.com>
Fri, 15 Mar 2019 08:45:15 +0000 (09:45 +0100)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 26 Mar 2019 23:14:24 +0000 (16:14 -0700)
commit7ec52b9df7d7472240fa96223185894b1897aeb0
tree8926ba6ccd8c6159886896dca4320b6e4410d978
parentdabb8338be533c18f50255cf39ff4f66d4dabdbe
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@redhat.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c