Skip to content
Snippets Groups Projects
Commit 5d02b3cd authored by Linus Lüssing's avatar Linus Lüssing Committed by Marek Lindner
Browse files

batman-adv: Make bat_priv->curr_gw an rcu protected pointer


The rcu protected macros rcu_dereference() and rcu_assign_pointer()
for the bat_priv->curr_gw need to be used, as well as spin/rcu locking.

Otherwise we might end up using a curr_gw pointer pointing to already
freed memory.

Reported-by: default avatarSven Eckelmann <sven@narfation.org>
Signed-off-by: default avatarLinus Lüssing <linus.luessing@ascom.ch>
Signed-off-by: default avatarMarek Lindner <lindner_marek@yahoo.de>
parent f3e0008f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment