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)
commit5df27e6cb2d302e90366848bc3c2bb73c41287fb
tree2f86c07bfd18e177bed8532dde07f08382e90420
parent4fee991a4689ca64abea90814e0b3c6d30a3c62f
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