]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: link the upper neighbour only after registering
authorVeaceslav Falico <vfalico@redhat.com>
Wed, 25 Sep 2013 07:20:29 +0000 (09:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Sep 2013 20:02:07 +0000 (16:02 -0400)
commit50ab19b7d33fdea7eba8e2dc8873465f4627c4f5
tree2f86c07bfd18e177bed8532dde07f08382e90420
parentba129869cc3a5e5e99a06b03c39bc0d829faa55f
vlan: link the upper neighbour only after registering

Otherwise users might access it without being fully registered, as per
sysfs - it only inits in register_netdevice(), so is unusable till it is
called.

CC: Patrick McHardy <kaber@trash.net>
CC: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan.c