Antonio Quartulli 08bf0ed29c batman-adv: avoid potential race condition when adding a new neighbour
When adding a new neighbour it is important to atomically
perform the following:
- check if the neighbour already exists
- append the neighbour to the proper list

If the two operations are not performed in an atomic context
it is possible that two concurrent insertions add the same
neighbour twice.

Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
2014-02-17 17:17:01 +01:00
..
2014-01-21 18:13:04 -08:00
2014-01-30 16:48:17 -08:00
2014-02-16 23:45:00 -05:00
2014-01-21 18:13:05 -08:00
2014-02-10 17:51:29 -08:00
2013-09-23 16:52:45 -04:00
2013-10-19 19:36:19 -04:00
2014-01-28 18:04:18 -08:00
2014-02-13 18:29:58 -05:00
2013-11-21 13:09:42 -05:00