From: Antonio Quartulli Date: Mon, 25 Apr 2011 20:44:32 +0000 (+0200) Subject: batman-adv: fix gw_node_update() and gw_election() X-Git-Tag: v3.0-rc1~377^2~190^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71e4aa9c465fd66c110667ab5d620fb6a4ef2157;p=pandora-kernel.git batman-adv: fix gw_node_update() and gw_election() This is a regression from c4aac1ab9b973798163b34939b522f01e4d28ac9 - gw_node_update() doesn't add a new gw_node in case of empty curr_gw. This means that at the beginning no gw_node is added, leading to an empty gateway list. - gw_election() is terminating in case of curr_gw == NULL. It has to terminate in case of curr_gw != NULL Signed-off-by: Antonio Quartulli Signed-off-by: Sven Eckelmann --- Reading git-diff-tree failed