]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Ensure that we really have route changes in update_route
authorSven Eckelmann <sven@narfation.org>
Tue, 10 May 2011 09:22:37 +0000 (11:22 +0200)
committerSven Eckelmann <sven@narfation.org>
Mon, 30 May 2011 05:39:37 +0000 (07:39 +0200)
commit24d261a6792525aa90fa8fccd04eb11f6884b797
treeabe2a2d492ef3bc9028d6deb2822abdd21b3c92f
parente5aa0d2033dc5fb07857be318bb474b59e619fa7
batman-adv: Ensure that we really have route changes in update_route

The debug output of update_route has tests for "route deleted" and "route
added". All other situations are handled as "route changed". This is not
true because neigh_node and curr_router could be both NULL.

The function is not called in this situation, but the code might be
interpreted wrong when reading it without this test.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/routing.c