summaryrefslogtreecommitdiff
path: root/src/network/networkd-vlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/networkd-vlan.c')
-rw-r--r--src/network/networkd-vlan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd-vlan.c b/src/network/networkd-vlan.c
index 1d812fdcaa..8727b9f103 100644
--- a/src/network/networkd-vlan.c
+++ b/src/network/networkd-vlan.c
@@ -139,6 +139,8 @@ int netdev_create_vlan(NetDev *netdev, Link *link, sd_rtnl_message_handler_t cal
return r;
}
+ link_ref(link);
+
log_debug_netdev(netdev, "creating netdev");
netdev->state = NETDEV_STATE_CREATING;