mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 15:23:42 +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:
@@ -200,11 +200,11 @@ static int tap_probe(struct linux_device *device, struct linux_device_request *r
|
||||
netdev->dev = &device->dev;
|
||||
memset(nic, 0, sizeof(*nic));
|
||||
|
||||
netdev_link_up(netdev);
|
||||
|
||||
if ((rc = register_netdev(netdev)) != 0)
|
||||
goto err_register;
|
||||
|
||||
netdev_link_up(netdev);
|
||||
|
||||
/* Look for the mandatory if setting */
|
||||
if_setting = linux_find_setting("if", &request->settings);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user