mirror of
https://github.com/ipxe/ipxe
synced 2026-03-16 03:02:07 +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:
@@ -1155,14 +1155,14 @@ int e1000e_probe ( struct pci_device *pdev,
|
||||
/* reset the hardware with the new settings */
|
||||
e1000e_reset ( adapter );
|
||||
|
||||
/* Mark as link up; we don't yet handle link state */
|
||||
netdev_link_up ( netdev );
|
||||
|
||||
if ( ( err = register_netdev ( netdev ) ) != 0) {
|
||||
DBG ( "err_register\n" );
|
||||
goto err_register;
|
||||
}
|
||||
|
||||
/* Mark as link up; we don't yet handle link state */
|
||||
netdev_link_up ( netdev );
|
||||
|
||||
for (i = 0; i < 6; i++)
|
||||
DBG ("%02x%s", netdev->ll_addr[i], i == 5 ? "\n" : ":");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user