From: Eric Dumazet Date: Thu, 10 Jan 2008 11:55:57 +0000 (-0800) Subject: [IPV4] ROUTE: fix rcu_dereference() uses in /proc/net/rt_cache X-Git-Tag: v2.6.24-rc8~7^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bcceadceb0907094ba4e40bf9a7cd9b080f13fb;p=pandora-kernel.git [IPV4] ROUTE: fix rcu_dereference() uses in /proc/net/rt_cache In rt_cache_get_next(), no need to guard seq->private by a rcu_dereference() since seq is private to the thread running this function. Reading seq.private once (as guaranted bu rcu_dereference()) or several time if compiler really is dumb enough wont change the result. But we miss real spots where rcu_dereference() are needed, both in rt_cache_get_first() and rt_cache_get_next() Signed-off-by: Eric Dumazet Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed