batman-adv: Fix potential broadcast BLA-duplicate-check race condition
authorLinus Lüssing <linus.luessing@web.de>
Wed, 17 Oct 2012 12:53:05 +0000 (14:53 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Thu, 18 Oct 2012 16:17:31 +0000 (18:17 +0200)
commit7dac7b76b8db87fc79857a53a09730fb2148579b
tree4d03c5a61a0785e0e5cc696005459b20f7094bfe
parent7f112af40fecf5399b61e69ffc6b55a9d82789f7
batman-adv: Fix potential broadcast BLA-duplicate-check race condition

Threads in the bottom half of batadv_bla_check_bcast_duplist() might
otherwise for instance overwrite variables which other threads might
be using/reading at the same time in the top half, potentially
leading to messing up the bcast_duplist, possibly resulting in false
bridge loop avoidance duplicate check decisions.

Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Acked-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/bridge_loop_avoidance.c
net/batman-adv/types.h