]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Fix consistency of update route messages
authorSven Eckelmann <sven@narfation.org>
Wed, 29 Jun 2016 21:45:57 +0000 (23:45 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Tue, 9 Aug 2016 05:54:34 +0000 (07:54 +0200)
commite7daefc7559f4e0eef913697c27f147d91734585
treecff945986474becdfcd6b4ea62153ee66779f0df
parentd3a0b3af69396e32b1ac54eaa031ea204f3d4ea6
batman-adv: Fix consistency of update route messages

The debug messages of _batadv_update_route were printed before the actual
route change is done. At this point it is not really known which
curr_router will be replaced. Thus the messages could print the wrong
operation.

Printing the debug messages after the operation was done avoids this
problem.

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/routing.c