From: Marek Lindner Date: Wed, 20 Apr 2011 13:40:58 +0000 (+0200) Subject: batman-adv: Make bat_priv->primary_if an rcu protected pointer X-Git-Tag: v3.0-rc1~377^2~190^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32ae9b221e788413ce68feaae2ca39e406211a0a;p=pandora-kernel.git batman-adv: Make bat_priv->primary_if an rcu protected pointer 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 Signed-off-by: Sven Eckelmann --- Reading git-diff-tree failed