summaryrefslogtreecommitdiffhomepage
path: root/vlan.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-04-15 16:20:50 +0200
committerFelix Fietkau <nbd@openwrt.org>2013-04-15 16:20:50 +0200
commitb35fd5d5788184f685520352962f1a727ea91c1e (patch)
tree8c330c82f83bae2bb056c38ee462c5949ac49abf /vlan.c
parente0f63be5d2dd6d52d9886231d64040f5ef8142bf (diff)
device: use safe_list for device event, fixes some hang issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'vlan.c')
-rw-r--r--vlan.c2
1 files changed, 1 insertions, 1 deletions
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;