From: Marek Lindner Date: Thu, 10 Feb 2011 14:33:53 +0000 (+0000) Subject: batman-adv: Correct rcu refcounting for neigh_node X-Git-Tag: v2.6.39-rc1~468^2~151^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44524fcdf6ca19b58c24f7622c4af1d8d8fe59f8;p=pandora-kernel.git batman-adv: Correct rcu refcounting for neigh_node It might be possible that 2 threads access the same data in the same rcu grace period. The first thread calls call_rcu() to decrement the refcount and free the data while the second thread increases the refcount to use the data. To avoid this race condition all refcount operations have to be atomic. Reported-by: Sven Eckelmann Signed-off-by: Marek Lindner --- Reading git-diff-tree failed