aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/linux/tap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/linux/tap.c')
-rw-r--r--src/drivers/linux/tap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/linux/tap.c b/src/drivers/linux/tap.c
index ff1e08b..9b52c20 100644
--- a/src/drivers/linux/tap.c
+++ b/src/drivers/linux/tap.c
@@ -231,9 +231,9 @@ static int tap_probe(struct linux_device *device, struct linux_device_request *r
return 0;
-err_settings:
unregister_netdev(netdev);
err_register:
+err_settings:
netdev_nullify(netdev);
netdev_put(netdev);
return rc;