dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Rémi Denis-Courmont 2009-11-16 22:17:24 +00:00 committed by David S. Miller
parent 115924b6bd
commit b2a5decddb
1 changed files with 1 additions and 1 deletions

View File

@ -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();