[SOCK]: Adds a rcu_dereference() in sk_filter
authorEric Dumazet <dada1@cosmosbay.com>
Wed, 9 Jan 2008 07:41:28 +0000 (23:41 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jan 2008 07:41:28 +0000 (23:41 -0800)
commit9d3e44425e3498eb33f25d94392b4fd0d56a5176
tree453e71e0dfae127df026c64e2b1a24aa4f629b3d
parent0f99be0d115a5716292c58dfdb20d2eddd0f3387
[SOCK]: Adds a rcu_dereference() in sk_filter

It seems commit fda9ef5d679b07c9d9097aaf6ef7f069d794a8f9 introduced a RCU
protection for sk_filter(), without a rcu_dereference()

Either we need a rcu_dereference(), either a comment should explain why we
dont need it. I vote for the former.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h