batman-adv: Revert "postpone sysfs removal when unregistering"
authorSven Eckelmann <sven@narfation.org>
Mon, 13 Jun 2016 05:41:31 +0000 (07:41 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Tue, 9 Aug 2016 05:54:27 +0000 (07:54 +0200)
commit569c98504b2004dba207127bcceb8f3aeb9b8e7d
tree8d51cda7b5e931668dbe15e9d45305da5c564bdd
parent77d69d8ce17ce0d2a29d042e27943b0a8cea302d
batman-adv: Revert "postpone sysfs removal when unregistering"

Postponing the removal of the interface breaks the expected behavior of
NETDEV_UNREGISTER and NETDEV_PRE_TYPE_CHANGE. This is especially
problematic when an interface is removed and added in quick succession.

This reverts commit 5bc44dc8458c ("batman-adv: postpone sysfs removal when
unregistering").

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/hard-interface.c
net/batman-adv/soft-interface.c
net/batman-adv/types.h