batman-adv: unify hash_entry field position in tt_local/global_entry
commit1bccf76533a1e336dfa8007554d4283253e259c7
authorAntonio Quartulli <ordex@autistici.org>
Fri, 21 Oct 2011 22:55:39 +0000 (22 00:55 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 26 Nov 2011 17:08:40 +0000 (26 09:08 -0800)
tree6a6dd0b50dfe75416d87fd27f73af27f4b2e23f2
parent9bab392e4a2120bba4f6fbe8676a5baf16756926
batman-adv: unify hash_entry field position in tt_local/global_entry

commit 93840ac40bb0d0f177ef8af74e64671be67e8c37 upstream.

Function tt_response_fill_table() actually uses a tt_local_entry pointer to
iterate either over the local or the global table entries (it depends on the
what hash table is passed as argument). To iterate over such entries the
hlist_for_each_entry_rcu() macro has to access their "hash_entry" field which
MUST be at the same position in both the tt_global/local_entry structures.

Reported-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/batman-adv/types.h