summaryrefslogtreecommitdiffstats
path: root/net/phonet/af_phonet.c
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>2009-11-16 23:17:24 +0100
committerDavid S. Miller <davem@davemloft.net>2009-11-17 13:08:50 +0100
commitb2a5decddbe295d09c29d4a8078cdc47a55346df (patch)
tree5084b846548a1cc8d3ce1ecd91f496b9a8b39193 /net/phonet/af_phonet.c
parentnet: Getting rid of the x86 dependency to built vmxnet3 (diff)
downloadlinux-b2a5decddbe295d09c29d4a8078cdc47a55346df.tar.xz
linux-b2a5decddbe295d09c29d4a8078cdc47a55346df.zip
Phonet: missing rcu_dereference()
Reported-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/phonet/af_phonet.c')
-rw-r--r--net/phonet/af_phonet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/phonet/af_phonet.c b/net/phonet/af_phonet.c
index ed65da251b6a..526d0273991a 100644
--- a/net/phonet/af_phonet.c
+++ b/net/phonet/af_phonet.c
@@ -44,7 +44,7 @@ static struct phonet_protocol *phonet_proto_get(int protocol)
return NULL;
rcu_read_lock();
- pp = proto_tab[protocol];
+ pp = rcu_dereference(proto_tab[protocol]);
if (pp && !try_module_get(pp->prot->owner))
pp = NULL;
rcu_read_unlock();