Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Make bat_priv->primary_if an rcu protected pointer

2011-04-25 Thread Marek Lindner
On Wednesday 20 April 2011 15:43:34 Marek Lindner wrote: > The rcu protected macros rcu_dereference() and rcu_assign_pointer() > for the bat_priv->primary_if need to be used, as well as spin/rcu locking. > > Otherwise we might end up using a primary_if pointer pointing to already > freed memory.

[B.A.T.M.A.N.] [PATCH] batman-adv: Make bat_priv->primary_if an rcu protected pointer

2011-04-20 Thread Marek Lindner
The rcu protected macros rcu_dereference() and rcu_assign_pointer() for the bat_priv->primary_if need to be used, as well as spin/rcu locking. Otherwise we might end up using a primary_if pointer pointing to already freed memory. Signed-off-by: Marek Lindner --- gateway_client.c| 33 +