]> Pileus Git - ~andy/linux/commit
vlan: unlink the upper neighbour before unregistering
authorVeaceslav Falico <vfalico@redhat.com>
Wed, 25 Sep 2013 07:20:30 +0000 (09:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Sep 2013 20:02:07 +0000 (16:02 -0400)
commit47701a36a3ed6d97e5bbe7ad72cceb49ca329d00
treec68b34b9a1449707de0a9c66239ad6919810cf2f
parent5df27e6cb2d302e90366848bc3c2bb73c41287fb
vlan: unlink the upper neighbour before unregistering

On netdev unregister we're removing also all of its sysfs-associated stuff,
including the sysfs symlinks that are controlled by netdev neighbour code.
Also, it's a subtle race condition - cause we can still access it after
unregistering.

Move the unlinking right before the unregistering to fix both.

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