device: Fix dotted vlan interface staying down
[project/netifd.git] / system-linux.c
index 90b0775d57bd26b6ff29f9040f17bf53031469ad..eb785b56395caa03d102276e3973a974719933ee 100644 (file)
@@ -495,7 +495,7 @@ static int cb_rtnl_event(struct nl_msg *msg, void *arg)
        if (!nla[IFLA_IFNAME])
                goto out;
 
-       struct device *dev = device_get(nla_data(nla[IFLA_IFNAME]), false);
+       struct device *dev = device_find(nla_data(nla[IFLA_IFNAME]));
        if (!dev)
                goto out;