diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-04-15 16:20:50 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-04-15 16:20:50 +0200 |
commit | b35fd5d5788184f685520352962f1a727ea91c1e (patch) | |
tree | 8c330c82f83bae2bb056c38ee462c5949ac49abf /vlan.c | |
parent | e0f63be5d2dd6d52d9886231d64040f5ef8142bf (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |