From: Patrick McHardy Date: Fri, 9 Apr 2010 14:42:15 +0000 (+0200) Subject: netfilter: remove invalid rcu_dereference() calls X-Git-Tag: v2.6.35-rc1~473^2~168^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed86308f6179d8fa6151c2d0f652aad0091548e2;p=pandora-kernel.git netfilter: remove invalid rcu_dereference() calls The CONFIG_PROVE_RCU option discovered a few invalid uses of rcu_dereference() in netfilter. In all these cases, the code code intends to check whether a pointer is already assigned when performing registration or whether the assigned pointer matches when performing unregistration. The entire registration/ unregistration is protected by a mutex, so we don't need the rcu_dereference() calls. Reported-by: Valdis Kletnieks Tested-by: Valdis Kletnieks Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed