From: Linus Lüssing Date: Sun, 13 Feb 2011 21:13:02 +0000 (+0000) Subject: batman-adv: Make bat_priv->curr_gw an rcu protected pointer X-Git-Tag: v2.6.39-rc1~468^2~151^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d02b3cdfafeb23ab7cf43ef1d2118007370e8d0;p=pandora-kernel.git 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: Sven Eckelmann Signed-off-by: Linus Lüssing Signed-off-by: Marek Lindner --- Reading git-diff-tree failed