X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=system-linux.c;h=eb785b56395caa03d102276e3973a974719933ee;hp=90b0775d57bd26b6ff29f9040f17bf53031469ad;hb=ca2f99575937b183618e425a73b45bcc277b5541;hpb=29521f9a232f039318fd8525c410b3127836626f diff --git a/system-linux.c b/system-linux.c index 90b0775..eb785b5 100644 --- a/system-linux.c +++ b/system-linux.c @@ -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;