diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2008-01-10 03:55:57 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-10 03:55:57 -0800 |
commit | 0bcceadceb0907094ba4e40bf9a7cd9b080f13fb (patch) | |
tree | 6cec2343354c5a22107eb53da276ab744519033a /scripts/checkpatch.pl | |
parent | 9cd40029423701c376391da59d2c6469672b4bed (diff) |
[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 <dada1@cosmosbay.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions