projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02f05f3
)
vlan: reset device state on init
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 23 Jan 2015 23:47:13 +0000
(
00:47
+0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 23 Jan 2015 23:47:13 +0000
(
00:47
+0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
vlan.c
patch
|
blob
|
history
diff --git
a/vlan.c
b/vlan.c
index 354e12f661d662bcf1d37200239d2caeb6b255b2..7424aa82bd429812292fb2ae4ede10b1f4a1ac14 100644
(file)
--- a/
vlan.c
+++ b/
vlan.c
@@
-139,6
+139,9
@@
static struct device *get_vlan_device(struct device *dev, int id, bool create)
vldev->dep.cb = vlan_dev_cb;
device_add_user(&vldev->dep, dev);
+ vldev->set_state(dev, false);
+ system_vlan_del(dev);
+
return &vldev->dev;
}