mirror of
https://github.com/ipxe/ipxe
synced 2025-12-28 02:28:57 +03:00
[netdevice] Call netdev_link_[up|down|err]() only while registered
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -209,11 +209,11 @@ static int ifec_pci_probe ( struct pci_device *pci,
|
||||
nvs_read ( &priv->eeprom.nvs, EEPROM_ADDR_MDIO_REGISTER,
|
||||
&priv->mdio_register, 2 );
|
||||
|
||||
netdev_link_up ( netdev );
|
||||
|
||||
if ( ( rc = register_netdev ( netdev ) ) != 0 )
|
||||
goto error;
|
||||
|
||||
netdev_link_up ( netdev );
|
||||
|
||||
DBGP ( "ints\n" );
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user