X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=vlan.c;h=45896751d39241d240b2596d85dbeff8b1373303;hp=ee0652fb476ffc6542280f1c5eefbe26ea187b66;hb=97e748de49c02f36a1e75bd9f9552311fb4051b4;hpb=6094417533d97662f693d134ab04595a292de30c diff --git a/vlan.c b/vlan.c index ee0652f..4589675 100644 --- a/vlan.c +++ b/vlan.c @@ -99,7 +99,7 @@ static struct device *get_vlan_device(struct device *dev, int id, bool create) struct device_user *dep; /* look for an existing interface before creating a new one */ - list_for_each_entry(dep, &dev->users, list) { + list_for_each_entry(dep, &dev->users.list, list.list) { if (dep->cb != vlan_dev_cb) continue;