mirror of
https://github.com/ipxe/ipxe
synced 2025-12-29 02:52:36 +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:
@@ -114,12 +114,12 @@ int legacy_probe ( void *hwdev,
|
||||
*/
|
||||
dev->desc.irq = nic.irqno;
|
||||
|
||||
/* Mark as link up; legacy devices don't handle link state */
|
||||
netdev_link_up ( netdev );
|
||||
|
||||
if ( ( rc = register_netdev ( netdev ) ) != 0 )
|
||||
goto err_register;
|
||||
|
||||
/* Mark as link up; legacy devices don't handle link state */
|
||||
netdev_link_up ( netdev );
|
||||
|
||||
/* Do not remove this message */
|
||||
printf ( "WARNING: Using legacy NIC wrapper on %s\n",
|
||||
netdev->ll_protocol->ntoa ( nic.node_addr ) );
|
||||
|
||||
Reference in New Issue
Block a user