diff options
author | Michael Brown <mcb30@ipxe.org> | 2010-09-05 02:03:31 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2010-09-05 02:51:46 +0100 |
commit | 97ef28aea070f6d07b85fe16ef1b98da94a9f609 (patch) | |
tree | 80011445483aed4e257d449f796bd1cb24e3c60d /src/drivers/linux | |
parent | 3950d1d8e6e6bada1853af8e0cd863439886b080 (diff) | |
download | ipxe-97ef28aea070f6d07b85fe16ef1b98da94a9f609.zip ipxe-97ef28aea070f6d07b85fe16ef1b98da94a9f609.tar.gz ipxe-97ef28aea070f6d07b85fe16ef1b98da94a9f609.tar.bz2 |
[netdevice] Call netdev_link_[up|down|err]() only while registered
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/linux')
-rw-r--r-- | src/drivers/linux/tap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/linux/tap.c b/src/drivers/linux/tap.c index c2cb758..53bb16a 100644 --- a/src/drivers/linux/tap.c +++ b/src/drivers/linux/tap.c @@ -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); |