]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: unify hash_entry field position in tt_local/global_entry
authorAntonio Quartulli <ordex@autistici.org>
Fri, 21 Oct 2011 22:55:39 +0000 (00:55 +0200)
committerMarek Lindner <lindner_marek@yahoo.de>
Tue, 25 Oct 2011 12:23:05 +0000 (14:23 +0200)
commita2d8dc4952255e35b61811275611b3c45eba1671
tree3dd927a278ab6bd234520babaa5e8ddfbe4b276b
parentdb2f3d9c09153750cb934aee1bc8e87afe6149d4
batman-adv: unify hash_entry field position in tt_local/global_entry

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>
net/batman-adv/types.h