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