mirror of
https://github.com/ipxe/ipxe
synced 2026-01-01 09:09:32 +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:
@@ -4183,10 +4183,10 @@ efab_probe ( struct pci_device *pci,
|
||||
|
||||
memcpy ( netdev->hw_addr, efab->mac_addr, ETH_ALEN );
|
||||
|
||||
netdev_link_up ( netdev );
|
||||
rc = register_netdev ( netdev );
|
||||
if ( rc )
|
||||
goto fail4;
|
||||
netdev_link_up ( netdev );
|
||||
|
||||
/* Advertise non-volatile storage */
|
||||
if ( efab->nvo.nvs ) {
|
||||
|
||||
Reference in New Issue
Block a user