batman-adv: set TT_CLIENT_NEW flag before invoking hash_add()
authorAntonio Quartulli <ordex@autistici.org>
Fri, 6 Jan 2012 20:31:33 +0000 (21:31 +0100)
committerMarek Lindner <lindner_marek@yahoo.de>
Thu, 16 Feb 2012 18:50:21 +0000 (02:50 +0800)
commitc40ed2bfa6cc30174d5c547b37bcd6528c830ef4
tree311997f241af6d9550321958fc57f6838727a670
parent567db7b0b7c0a94cc62846f8ebb429bdda2884bc
batman-adv: set TT_CLIENT_NEW flag before invoking hash_add()

In case of a new tt_local_entry, the TT_CLIENT_NEW flag has to be set before
adding such entry to the hash table. Otherwise, it opens a race condition
in which the entry can be found but the flag has not been set.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/translation-table.c