]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4043e0d34e7f5edd3f5a026816f48c17d14a95d3
tree8d51cda7b5e931668dbe15e9d45305da5c564bdd
parentdfbeb99ba25cede76cc21a3202ce2e726931c1fe
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 34073b656b27 ("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