batman-adv: protect bonding with rcu locks
bonding / alternating candidates need to be secured by rcu locks as well. This patch therefore converts the bonding list from a plain pointer list to a rcu securable lists and references the bonding candidates. Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
This commit is contained in:
committed by
Marek Lindner
parent
2ae2daf6c3
commit
a4c135c561
@@ -271,7 +271,7 @@ static void hardif_activate_interface(struct batman_if *batman_if)
|
||||
static void hardif_deactivate_interface(struct batman_if *batman_if)
|
||||
{
|
||||
if ((batman_if->if_status != IF_ACTIVE) &&
|
||||
(batman_if->if_status != IF_TO_BE_ACTIVATED))
|
||||
(batman_if->if_status != IF_TO_BE_ACTIVATED))
|
||||
return;
|
||||
|
||||
batman_if->if_status = IF_INACTIVE;
|
||||
|
||||
Reference in New Issue
Block a user